Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

              * 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

Next: Re-using the XPRIM_HttpRequest Object