Forget Json
This is a terrible task for llm models
A small error will invalidate the whole Jason answer
Go to xml
Yes … Longer answers
But you got exactly what u want
openAi I think did a big mistake adding function that rely on Json
Of course we all want it
But for now the easy way is xml
Works like a charm in production