Convert JSON to CSV
Contents
[
Hide
]
Convert JSON to CSV
Aspose.Cells 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 IgnoreArrayTitle(ignores the title if the array is a property of an object) or ArrayAsTable(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.
Sample Code