Skip to content

Instantly share code, notes, and snippets.

View jkearins's full-sized avatar
🏠
Working from home

John jkearins

🏠
Working from home
View GitHub Profile
@navono
navono / jsonParser.bat
Last active February 14, 2024 23:11
parse JSON file by windows batch
:: Read file "package.json" into variable string, removing line breaks.
set string=
for /f "delims=" %%x in (package.json) do set "string=!string!%%x"
rem Remove quotes
set string=%string:"=%
rem Remove braces
set "string=%string:~2,-2%"
rem Change colon+space by equal-sign
set "string=%string:: ==%"