I'd like to be able to read this file in the Windows command line and have these objects parsed as variables.
The JSON-parser xidel can help in this regard:
xidel -s "test.json" -e "$json/limit/min" -e "$json/limit/max"
xidel -s "test.json" -e "$json/limit/(min,max)"
Whether you use 2 queries to return each value, or 1 query to return both values, both commands should return:
0.5
1.5
Let Xidel export these values with custom variable-names or with the key-names as variable-names:
FOR /F "delims=" %A IN ('
xidel -s "test.json" -e "min:=$json/limit/min" -e "max:=$json/limit/max" --output-format^=cmd
') DO %A
FOR /F "delims=" %A IN ('
xidel -s "test.json" -e "$json/limit/(min:=min,max:=max)" --output-format^=cmd
') DO %A
FOR /F "delims=" %A IN ('
xidel -s "test.json" -e "$json/(limit)() ! eval(`{.}:=$json/limit/{.}`)[0]" --output-format^=cmd
') DO %A
ECHO %min% %max%
0.5 1.5