Hi,
I am trying to use the "JsonParse" function in Architect.
The help documentation says, that for the parameter passed to the function: "Parameter String valueToParse : The String value to parse to a JSON value. Supplying a blank string to JsonParse will invoke error handling."
It doesn't mention that a badly formed json string will invoke error handling.
But in the tests I have done, if I pass a badly formed json string (e.g. JsonParse("{\"account\": \"12345678\" \"name\": \"John Doe\"}"), error handling seems to be invoked.
(JsonParse("{\"account\": \"12345678\", \"name\": \"John Doe\"}") works well).
I can understand why the badly a formed json string would invoke error handling, but I can see no way to qualify the validity of the string before passing it to "jsonParse".
I have no control over the string that is being parsed (it comes from an external system), which means that I have no way to avoid error handling if the remote system doesn't provide valid "stringified" json.
Does anybody know a way to qualify the string to be parsed so that error handling can be avoided?
#ArchitectandDesign------------------------------
Andrew Watson
Architect
------------------------------