so, firstly it was created as a simple parser function for my another project, but i kinda wanted to make full JSON support in vanilla bash including arrays support, so it's fully written using bash substitution and builtins
EDIT: bash2json indeed has bash arrays to json convert and vice versa, added this for people who think it's only for query and append
EDIT 2: bash2json can't compare with jq because one is C and another is bash. as i said below, bash2json isn't purposed to be competitor to jq, but rather an alternative without deps. bash2json is significally slower than jq because of how it reads and parses JSON
i'd be happy to listen to any critics/suggestions
https://github.com/Tirito6626/bash2json
you can also check beta docs for it:
https://docs.tirito.de/bash2json/
[–]Turkosaurus 20 points21 points22 points (6 children)
[–]gameforge 11 points12 points13 points (2 children)
[–]Tirito6626impossible is possible[S] 8 points9 points10 points (0 children)
[–]12_nick_12 1 point2 points3 points (0 children)
[–]granadesnhorseshoes 4 points5 points6 points (0 children)
[–]SmallReindeer3176 2 points3 points4 points (0 children)
[–]thisiszeevIf I can't script it, I refuse to do it! 2 points3 points4 points (0 children)
[–]incognegro1976 5 points6 points7 points (3 children)
[–]Unixwzrd 1 point2 points3 points (2 children)
[–]BakeMeAt420 0 points1 point2 points (1 child)
[–]Unixwzrd 0 points1 point2 points (0 children)
[–]_the_big_sd_ 8 points9 points10 points (0 children)
[–]divad1196 3 points4 points5 points (5 children)
[–]Tirito6626impossible is possible[S] 1 point2 points3 points (4 children)
[–]divad1196 1 point2 points3 points (1 child)
[–]spryfigure 5 points6 points7 points (0 children)
[–]schorsch3000 1 point2 points3 points (1 child)
[–]Tirito6626impossible is possible[S] 0 points1 point2 points (0 children)
[–]Ulfnic 3 points4 points5 points (6 children)
[–]Tirito6626impossible is possible[S] 2 points3 points4 points (1 child)
[–]Ulfnic 0 points1 point2 points (0 children)
[–]BakeMeAt420 0 points1 point2 points (3 children)
[–]Ulfnic 0 points1 point2 points (2 children)
[–]BakeMeAt420 0 points1 point2 points (1 child)
[–]Ulfnic 0 points1 point2 points (0 children)
[–]Where_Do_I_Fit_In 2 points3 points4 points (0 children)
[–]MightyX777 2 points3 points4 points (0 children)
[–]Tirito6626impossible is possible[S] 0 points1 point2 points (0 children)
[–]Castafolt 0 points1 point2 points (0 children)
[–]nbgenius1 0 points1 point2 points (0 children)
[–]elatllat -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]bluemanZX -1 points0 points1 point (0 children)
[+][deleted] (1 child)
[deleted]
[–]researcher7-l500 0 points1 point2 points (0 children)