Page History
...
* Bad response. JsonDoc isn't valid
endif
Similar code can be used to validate if the structure of the document is correct. So, before the For/Endfor:
If_Ref Com(#JsonDoc.RootNode<'results'>) Is_Not(*NULL)
For Each(#Result) In(#JsonDoc.RootNode<'results'>)
Endfor
Endif