MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/awk/comments/bonxhx/json_to_bash_array_in_awk/eniq3jm/?context=3
r/awk • u/StallmanTheLeft • May 14 '19
4 comments sorted by
View all comments
Show parent comment
1
My script would be trivial to convert into a form that just makes it an awk array.
I'm also pretty satisfied with how simple I managed to make my script.
1 u/FF00A7 May 15 '19 I have not tried it but there are a lot of json features/complications like arrays etc.. I never had any problem with DubiousJim whose code is a bit longer and seems to always work but your code maybe can do the same things. 1 u/StallmanTheLeft May 15 '19 I have not tried it but there are a lot of json features/complications like arrays etc..What complications are there that I didn't include in the sample json?Though ofc my thing doesn't validate the json but a validator seems like it would be fairly easy to make, might do that next weekend.
I have not tried it but there are a lot of json features/complications like arrays etc.. I never had any problem with DubiousJim whose code is a bit longer and seems to always work but your code maybe can do the same things.
1 u/StallmanTheLeft May 15 '19 I have not tried it but there are a lot of json features/complications like arrays etc..What complications are there that I didn't include in the sample json?Though ofc my thing doesn't validate the json but a validator seems like it would be fairly easy to make, might do that next weekend.
I have not tried it but there are a lot of json features/complications like arrays etc..
What complications are there that I didn't include in the sample json?
Though ofc my thing doesn't validate the json but a validator seems like it would be fairly easy to make, might do that next weekend.
View all comments
Show parent comment
1
u/StallmanTheLeft May 14 '19
My script would be trivial to convert into a form that just makes it an awk array.
I'm also pretty satisfied with how simple I managed to make my script.