json-flattener

flatten_json recursive flattening function for lists

☆樱花仙子☆ 提交于 2021-02-20 03:09:27
问题 I want to flatten the following JSON at each level and create a pandas dataframe per level, Im using flatten_json to do that but for that I need to loop through each level which creates multiple nested for loops: { "metadata": { "name": "abc", "time": "2020-04-01" }, "data": [ { "identifiers": [ { "type": "abc", "scheme": "def", "value": "123" }, { "type": "abc", "scheme": "def", "value": "123" } ], "name": "qwer", "type": "abd", "level1": [ { "identifiers": [ { "type": "abc", "scheme": "def"

flatten_json recursive flattening function for lists

こ雲淡風輕ζ 提交于 2021-02-20 03:08:13
问题 I want to flatten the following JSON at each level and create a pandas dataframe per level, Im using flatten_json to do that but for that I need to loop through each level which creates multiple nested for loops: { "metadata": { "name": "abc", "time": "2020-04-01" }, "data": [ { "identifiers": [ { "type": "abc", "scheme": "def", "value": "123" }, { "type": "abc", "scheme": "def", "value": "123" } ], "name": "qwer", "type": "abd", "level1": [ { "identifiers": [ { "type": "abc", "scheme": "def"

flatten_json recursive flattening function for lists

泪湿孤枕 提交于 2021-02-20 03:04:10
问题 I want to flatten the following JSON at each level and create a pandas dataframe per level, Im using flatten_json to do that but for that I need to loop through each level which creates multiple nested for loops: { "metadata": { "name": "abc", "time": "2020-04-01" }, "data": [ { "identifiers": [ { "type": "abc", "scheme": "def", "value": "123" }, { "type": "abc", "scheme": "def", "value": "123" } ], "name": "qwer", "type": "abd", "level1": [ { "identifiers": [ { "type": "abc", "scheme": "def"