I've composed a post that could be of interest to those of you working with GPT (or any other LLM) and seeking JSON as an output. Here's a simple trick that can help reduce expenses and improve response times.
It seems like the main issue is whitespace and indentation which YAML requires unlike JSON.