Do you know the History of Data Science? READ MORE

loading JSON file without flatten

tamermh
Level 1
loading JSON file without flatten

Hi,

How can i load JSON file without flatten it ?

for example, similar to load json in pandas with

pd.read_json('datasets/empire_invoke_wmi_2019-05-18214442.json', lines=True)

 

i want to get the same results as in this screenshot

miro.medium.com/max/1400/1*_El_HrFmIjb4LU4jVzAEKA.png

Thanks

0 Kudos
2 Replies
Clément_Stenac
Dataiker
Dataiker

Hi,

If your JSON file is made of one record per line, you could use the "One record per line" file format and then use the "flatten object" in the prepare recipe that does not recurse.

We will be adding a flattening depth limit in the JSON format in DSS 8.0, sometimes this summer.

tamermh
Level 1
Author

Great, found it.

Thanks alot

0 Kudos
A banner prompting to get Dataiku DSS