batch file, read json file into string

Viewed 5941

I need to read a json file:

{
   "key": {
       "subkey": "value"
   }
}

so I can pass it as an argument to a command:

program -e SETTINGS=<JSON FILE AS STRING>
1 Answers
Related