{
"fields" : {
"field_10061" : 24,
"field_10101" : "GB"
}
}
I have this .json file named storage.json located in C:\files\storage.json and the contents of storage.json is as above:-
I want to create a batch file that stores the value of "field_10101" which is "GB" in a variable and echo it. I have tried this command below but its not working.
set LOC=C:\files\storage.json
for /f delims^=^"^ tokens^=3 %%A in ('findstr /R "field_10101" %LOC%') do set new=%%A
echo %new%.