ToJson¶ Parses Content as JSON. 1myAICompletionResult.ToJson():any Returns¶ The parsed value. Remarks¶ The content is not cleaned before parsing. Ask the model to answer only with JSON; an answer wrapped in a Markdown code fence or surrounded by other text is not valid JSON. See Also¶ Content