Hi,
I want to keep the original .json formatting when setting a value to my .json.
My original .json file
After running my code, it puts everything on a single line.
My code
jsonString = create JsonPackage
checkError = jsonString.LoadFile(Appl + ".json")
if Len(checkError) = 0 then
result = jsonString.SetValue("maxRows","50", false)
if result = 1 then
jsonString.SaveToFile(Appl + ".json", EncodingANSI!)
end if
end if
destroy jsonString
The .json still works after being all on one line but would like to keep the format if possible for easy readability.
Thanks