extract data, output JSON files