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=bravo
To 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.
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:
To 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.