LLMs will give answers as text well but at the application level it would be great if it is in JSON format. We can get the data in JSON format using Prompt engineering, but it comes with its own set of problems. In this article, Jason Liu covered here using the Pydantic & instructor packages how we can manage things better.