maybe a easy to answer question.
Via an API Request I receive a JSON File. In this JSON File a price-tag is included, but it can appear in tag number 1 or tag number 3 and so on. Just the name is fix PRICE.
I see there is a Node JSON Path Dictionary, but I’m now sure how to use it in this case.
Do you happen to have an (anonymized) example of your JSON to work with? Or the workflow it is included in? A pratical solution is always better than a theoretical solution
If PRICE on its own is a unique term and appears at the same hierarchical level, you should be able to gather this with just using a wildcard.
Assume a recipe book:
If I want to extract the name of each recipe individually manually, I would add:
In that case you should be able to get it with something along the lines of:
$..item[?(@.name=='PRICE/AMOUNT')].values
This depending on your actual JSON structure. Based on the limited screenshot I re-created something in a basic form, with a list and a few items. The code searches for the item PRICE/AMOUNT and then picks the values element.