Trying to extract the text between the first open and last close curly brackets from this code:
<script data-json='{"gr":{"template":77234,"body":"compact"},"model":"sedan"}' type="text/plain"></script>
I've tried using [.?]|{.?} but that only matched the following:
{"gr":{"template":77234,"body":"compact"}
I need to get the following:
{"gr":{"template":77234,"body":"compact"},"model":"sedan"}
Any suggestions?