JSON Beautify for BrightScript
' JSON Beautifier for BrightScript ' By BrightScripters function json_beautify(in$) as string indentLevel = 0 out$ = "" newLine$ = chr(13) + chr(10) for i = 0 to in$.len() - 1 char$ = in$.mid(i,1) if char$ = "{" or ...
' JSON Beautifier for BrightScript ' By BrightScripters function json_beautify(in$) as string indentLevel = 0 out$ = "" newLine$ = chr(13) + chr(10) for i = 0 to in$.len() - 1 char$ = in$.mid(i,1) if char$ = "{" or ...
roList and roArray seem similar but there is at least one difference between them which is how they convert to JSON with formatJson(). roList = createObject("roList") roList.push(11) roList.push(12) roList.push(13) ' Doesn't work print "roList conte...