-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Morning,
Thanks for a great shell only library. I am looking at the docs on using the jb @./file:{} functionality to generate valid JSON structures.
How can I use this to generate an array of objects from a file that is structured like the following:
key=value,item=foo,bar=baz
key=123,item=456,bar=zxy
key=tango,item=uniform,bar=bravoTo something like the following
[
{
"key":"value",
"item":"foo",
"bar":"baz"
},
{
"key":"123",
"item":"456",
"bar":"zxy"
},
{
"key":"tango",
"item":"uniform",
"bar":"bravo"
}
]Some benchmarking may have put this beyond reach as on a hundred records, using jb @./file:{} took 71minutes to complete. Provided this was in a resource constrained VM. Maybe this functionality is a limit for the shell however.
Thanks for any pointers on how to accomplish this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels