Convert ndjson to json or csv format
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I'm looking for a workflow or tool that converts ndjson files to json or csv files. Any suggestions would be appreciated.
Solved! Go to Solution.
- Labels:
- Datasets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @mtwilliamson ,
You can use the regular json parse tool to accomplish what you need.
Take a look at the attached example and let me know what you think.
(The ndjson file is inside a zip file so I could upload to this post, please extract it and place in the same folder as the workflow)
I'm using a file used in a weekly challenge created by @JoeM
Best,
Fernando V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks fmvizcaino for the quick response. I'm in the process testing out the workflow now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi fmvizcaino,
Using the apple data in your workflow, is there a way to "pivot" the first column (JSON_Name) into a single column header and create rows for the remaining values in JSON_ValueString? It looks like there are 83 columns per row. I tried using the Cross Tab and Transpose tools but I'm struggling to get the data into rows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @mtwilliamson ,
Attached is an example showing how to get that done. I'm using a recordID before everything to be able to separate everything into different rows.
For the example ndjson, the columns doesn't make much sense but you can try with your own data.
Best,
Fernando Vizcaino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Fernando,
That works great! Thank you for the help.
