Replies: 2 comments 1 reply
-
Hi folks Just thought that I would pop back in and mention that I solved this on my own. I think I was just trying to use MIller in a way that it isn't suited and I found a different csv tool that is specifically written to work with JSON. I will be keeping up on releases since I know I will have more work in the future that will require Miller. Thanks to the team for putting this tool out |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @lolbat -- in Miller 6 you can do
Or, more flexibly:
with the same output. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks
I just found Miller. Oddly it was the on Hacker News the day after I was looking for something like this.
I am currently working on a web-app that loads a series of JSON files that I have created from CSV export from a spreadsheet. I am currently hand-editing the JSON files to take a series of fields and then add them to a new JSON key that has an array of those files.
So in each JSON record there are the following fields
and I want to change that to
So create a new field called
stats
, append the fields to it and then remove the final,
in the list to ensure that the JSON is valid.Is there a way to do that in Miller or will I need to use something else? I checked out
put
but that seems to compute values and not just append them or am I wrong?TIA
Beta Was this translation helpful? Give feedback.
All reactions