Hey there!
So, i have a string representation of some JSON, lets say I retrieved this string from a Websocket-based backend.
Getting the string is fine, but I want to inspect and observe all keys and values, including any embedded documents or arrays.
Given the string response:
myJSON = "{"key": "value", "embedded_key: {"embedded_val_1": 0, "embedded_val_2": [1,2,3,4,5]}}"
...I can load this such as:
Dictionary.Load( "{""c2dictionary"":true, ""data"": " & myJSON & " }"
Which results in a dictionary with 2 keys.
"key": "value"
"embedded_key": [Object object].
Any tips for parsing down the whole line of documents? Should I maybe use some custom plugin that handles JSON better?
Failing that, can anyone recommend any string manipulation utilities in Construct2 for splitting strings into sub-documents?