Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parse and store text from a json file in windows batch script

I have a json file with the following contents

{"STATUS":"PASS","PASSRATE":96.95238}

I want to store the passrate so that I can use it to append to a filename.

like image 872
Rakesh Avatar asked Jun 23 '26 05:06

Rakesh


1 Answers

Check jsonextractor.bat with which you can extract information from json file by given dot notated path to object:

jsonextractor.bat data.json PASSRATE
like image 165
npocmaka Avatar answered Jun 25 '26 18:06

npocmaka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!