Parses the model's text and checks it: the JSON is found in plain text, in a code fence, or between the first and last brace.
Parses the model's text and checks it: the JSON is found in plain text, in a code fence, or between the first and last brace.