Open AI API can accept a CSV file or a JSON file as an input prompt

I would like to know if i could parse a json or a csv file as my input prompt to OPEN AI API ?As per my research, i find that the json or csv contents have to be changed into a text format for a prompt ? is this right or can we parse a csv or json file ?

could you please to explain with more details and let me know what is the json and csv files mean? and for what purposes we need to use them ?

thanks

so, the use case is : - I have to parse a csv file or a json file which can contain some metadata to the OPEN AI API , then the model defined has to analyze the metadata and get the semantic context out of it and return it as the output response. The output can also be a json file or path leading to a specific location. I wanted to try this approach in my python notebook. The main purpose of this use case is , instead of creating the embeddings and then finding the similarity, we directly parse the data and find the semantic context.

I hope i have clarified your query.