Simple json manipulation. These functions does not completely replace jq
in any way.
Extract value from json based on key and position. Input to the function can be a pipe output, here-string or file.
json::get_value "id" "1" < json_file
json::get_value "id" <<< "${json_var}"
echo "{\"data\":{\"id\":\"123\",\"value\":\"name string\"}}" | json::get_value "id"