我收到了来自 Mixpanel API 的原始数据。我希望将其转换为 CSV 文件,以便可以在 Excel 中操作数据。我已经尝试过这个在线工具(http://jsfiddle.net/sturtevant/vUnF9/),但它似乎无法处理嵌套的 json 结果。做这个的最好方式是什么?
这是示例输出:
{"event":"Event.Name","properties":{"time":1376784014,"distinct_id":"distinctID","$app_version":"1.XX","$city":"cityName","$ios_ifa":"iosIfa","$lib_version":"X.Y.Z","$manufacturer":"Apple","$model":"model","$os":"iPhone OS","$os_version":"X.Y.Z","$region":"Region","$screen_height":999,"$screen_width":999,"$wifi":true,"App Version":"1.XX","BattleDuration":"99","BattleNum":"2","Episode Num":"2","PlayerVictory":"1","mp_country_code":"CODE","mp_device_model":"Model","mp_lib":"iphone"}}