Ok guys so I need to obtain a value from a JSON file to be used inside a VBScript.
Here is the sample content:
{
"installedPacks": {
"vanilla": {
"name": "vanilla",
"build": "1.7.10",
"directory": "%MODPACKS%\\vanilla"
}
I would like to read the contents of the file and locate specifically the build value (which in this case is 1.7.10) and assign it to a variable for later use.
I have an existing AppData variable that translates to:
objShell.ExpandEnvironmentStrings("%APPDATA%") & "\"
The file I need to open is in location: AppData & ".technic\installedPacks"