Hi Adrian,
I would say thank you again for your efforts in development of facinating ObjectPath, I really like it. Here is my problem:
I have JSON with repeated blocks of data series - daily weather forecast. Each block, lets say, represents observations for 1 day. At the end I would like to get the same JSON structure (repeated blocks), but data in each block must be transformed: some attributes are thrown away, values of other attributes used to create new attributes and so on. As an example:
source = [{'dt': 1, 'rain':3, 'useless':0}, {'dt':2, 'snow':5, 'useless':0}]
dest = [{'time':1, 'precip_type':'rain', 'precip_intensity':3}, {'time':2, 'precip_type':'snow', 'precip_intensity':5}]
Using excellent Python library I could process them separately using one query to get list of repeating blocks and then transform each block using dedicated query for each attribute.
But I'm curious whether it is possible to get resulting data set using one ObjectPath query?
Thanks in advance!
Dmitry.