How to prepare the dataset to get output in JSON Format

I have to fine-tune the davinci model to give the output in a particular JSON format. How should I prepare the dataset for that?