{"version":"1.0","type":"rich","title":"Convert Avro document to Json in Python using fastavro","description":"This example converts Avro files into a single JSON document using Python’s `fastavro` library. It reads all `.avro` files from hourly subdirectories under a date-partitioned S3 path, iterates through records with `fastavro.reader`, and accumulates them into a list. The script then writes the collected data to `out.json` with `json.dump`, using sorted keys and indentation for readability. The code demonstrates batch processing of Avro data from multiple files into a structured, human-readable JSON output.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-80b9a90e123b8747989c9f0c6028e359?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}