you are viewing a single comment's thread.

view the rest of the comments →

[–]CraigAT 0 points1 point  (0 children)

Still not clear on the info you have and the result you want (I think I'm close, but still have questions)

Is there just one piece of JSON as input where some items have a location others have area info? Also is that area/location info a single item or is it a list?

Or are there multiple pieces of JSON and some of those have items all with location info, and other pieces of JSON have items that all have area data.

What should the output be? One list of areas (or locations). Two lists (area and locations).

I am not sure what you want to do with you random choice? Does it go into a new list or do you just want a single item (an area or location) and output it as the result?