I am working with some complex JSON(arrays nested in arrays). I am interested in flattening the JSON structure into a CSV. My main issue is that the full structure of the JSON is unknown, arrays vary in length and complexity. Is there either: 1. A tool that will scan the JSON and create a complete dictionary? OR 2. A tool that can flatten the JSON into CSV or some other 'flat' data structure?