amancevice / flatsplode

Flatten/Explode JSON objects
MIT License
17 stars 7 forks source link

Cannot handle empty array #7

Closed PratikshaPanpaliya closed 2 years ago

PratikshaPanpaliya commented 2 years ago

not able to handle json with empty array something like this { "Test":"a", "Test1":[] } This code is good but performance wise not that good, tried for 10k json records took almost 20 mins

amancevice commented 2 years ago

Thanks for reporting, I have updated the code to explode empty lists as None

As for the performance, you are welcome to open a PR! :)