Exception still can contain some useful info, so:
#dim tSC As %Status = $$$OK
...
try {
set tJSON = {}.%FromJSON(pInput)
} Catch ex {
do ex.Log()
set tempSC = $$$ERROR($$$GeneralError,"Badly formed JSON")
set tSC = $$$ADDSC(tempSC, ex.AsStatus())
}
quit tSC- Log in to post comments