JSON codefence removal

Hi

I’m trying to remove the following text outside the {} to parse a JSON:


{

}

I’ve tried:


{{ replace(11.json; "/(^```\w*\s*|\s*```$)/g"; emptystring) }}

As suggested here: Issue with JSON Parsing in OpenAI Response but this doesn’t remove the back ticks outside the final }.

Thanks