Large language models (LLMs) are great at generating content but the output format you get back can be a hit or miss sometimes.