Convenient use of JSON in bash scripts. For how to use each function, please refer to: bjson_test.sh.
The current bash library requires command line tools gobolt .
In the converted associative array, the key is the original value, but for the value, an attribute tag will be added. So the attribute tags have:
s:stringi:numberf:bool falset:bool trueo:objecta:arrayn:null
In the converted array, an attribute tag will be added to each value of the array. All attribute tags are the same as above.
Each value in an associative array must be preceded by an attribute tag. Then it can be serialized into a JSON object.
Each value in the array must be preceded by an attribute tag. Then it can be serialized into a JSON array.