JSON to List Help

David,

Looking at the JSON that you posted in your initial message it looks like the ‘results’ property is returning a list. Consequently, you can use any of the list blocks (e.g. 'length of') on the value returned by your 'get property results of object' block.

BTW, you can tell from the JSON string that the ‘results’ property is returning a list because it begins with an open square bracket (i.e. “[”).

As a further note, while your 'get property 0 of object', 'get property 1 of object' blocks work on the list (due to the way that the lists are implemented) it would be safer and more clear to use 'in list __ get # 1', 'in list __ get # 2' blocks instead. Note that when you refer to the items as a list, the items start at 1, rather than at 0 when you refer to them as an object property.

Hope this helps.

Happy Thunking!

-Mark

1 Like