You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was unable to find a way to access the appropriate manufacturing plant using ObjectPath as each record is a named dictionary rather than a list item. So if I wanted to find out the total capacity possible for each of the two sodas using ObjectPath, is there a way to do that?
I was trying to do something like this: sum($.manufacturing.plant.[$.beverage.soda.lemonlime.plants].capacity) but I was not able to set a part of the path to the value that is stored somewhere else. All of the selectors appear to be list based, is that correct?
Some information I found elsewhere indicates that if the name of the plant were a value in each record it would be possible, but with the name of the plant as a key to the record itself that there is no lookup directive that can do this. I'd prefer not to have to rewrite these structures just to be able to use ObjectPath to look up information in this way.
If there were another operator or function that could do this, it would be useful:
I have some data where there are "named references" to other objects in other parts of the document stored as a string, for example:
I was unable to find a way to access the appropriate manufacturing plant using ObjectPath as each record is a named dictionary rather than a list item. So if I wanted to find out the total capacity possible for each of the two sodas using ObjectPath, is there a way to do that?
I was trying to do something like this:
sum($.manufacturing.plant.[$.beverage.soda.lemonlime.plants].capacity)
but I was not able to set a part of the path to the value that is stored somewhere else. All of the selectors appear to be list based, is that correct?Some information I found elsewhere indicates that if the name of the plant were a value in each record it would be possible, but with the name of the plant as a key to the record itself that there is no lookup directive that can do this. I'd prefer not to have to rewrite these structures just to be able to use ObjectPath to look up information in this way.
If there were another operator or function that could do this, it would be useful:
sum($.manufacturing.plant.&[$.beverage.soda.lemonlime.plants].capacity
-> 700000for example, given .* would be all names, perhaps .& could be selected names?
If the data were structured in another way, where the references were fully qualified dotted names into the tree:
A desired lookup on this would be:
sum($.&[$.beverage.soda.lemonlime.plants].capacity
-> 700000Thoughts?
The text was updated successfully, but these errors were encountered: