Forum Discussion

stew_ia's avatar
stew_ia
Frequent Visitor
6 years ago
Solved

JSON with empty array

I'm working with a 3rd party REST API that returns an empty Results array when all of the data has been consumed.  "Results":[]    This seems like it should be easy enough but it has me stumped.  I'...
  • stew_ia's avatar
    stew_ia
    6 years ago

    That did it JirkaZ,  prolem solved.  

    Results2 = if (Record.HasFields(Results1{0}, {"Id"})) then Results1 else null