Convert JSON to CSV
Contents
[
Hide
]
Convert JSON to CSV
Aspose.Cells for Python via .NET supports converting simple as well as nested JSON to CSV. For this, the API provides JsonLayoutOptions and JsonUtility classes. The JsonLayoutOptions class provides the options for JSON layout like ignore_array_title(ignores the title if the array is a property of an object) or array_as_table(processes the array as a table). The JsonUtility class processes the JSON using the layout options set with the JsonLayoutOptions class.
The following code sample demonstrates the use of JsonLayoutOptions and JsonUtility classes to load the source JSON file and generates the output CSV file.