Hi, first post. I’m testing an ODK form for gathering weather observations and want to at least start playing with the data I’m gathering. Someone on the ODK forum had success with Redash and so have I, to some degree but I’m stuck with the query.
For example, for a URL query I get the following (this is a snippet):
[{"__id":"uuid:a73ebe56-3b12-43e5-ab96-f107f6f24e9d","datecompleted":"2022-02-16","username":null,"introtext":null,"temprecord":{"tempinstructions":null,"morningtemp":8,"noontemp":4,"enddaytemp":8},
I can then pull out values for specific fields by using:
fields: [datecompleted]
path: value
This returns a table with a list of dates. Great.
Thing is, ODK uses something called ‘groups’ which organises surveys clearly and makes survey forms more user friendly. Reading the raw OData stream from ODK the fields inside groups are nested (see below, ‘temprecord’ field). Is this an array?
[{"__id":"uuid:a73ebe56-3b12-43e5-ab96-f107f6f24e9d","datecompleted":"2022-02-16","username":null,"introtext":null,"temprecord":{"tempinstructions":null,"morningtemp":8,"noontemp":4,"enddaytemp":8},
So, how the heck do I get the values out for those fields?! As per the title, totally out of my depth and funnily enough I’m usually pretty good with my key words for searching for help but in this instance I’m drawing a blank.
Any help would be greatly appreciated - at least somewhere where some basic JSON queries are documented for me to learn!
Thanks.