Сreating multilevel json with the jq utility in a bash script
I get the contents of a text file into an array and then sequentially get the elements of the array and try to add the elements to the json: #!/bin/bash JSON=$(jq -n '') readarray -t array < ./station.sample count=0 for…