Return field when another field matches string
-
[jsoncontentimporter url="https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd" debugmode="10" basenode=""]{current_price}[/jsoncontentimporter]
Above code gets the current_price for every id in the JSON. I want to get the current_price when the id=’ethereum’. If I were writing a JSON selector, it would look like this:
[1]['current_price']
I can’t figure out how to translate that into the syntax JSON Content Importer is using. I want it to just return one number, not a bunch of numbers.
Instead of
{current_price}
, what should I use?The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Return field when another field matches string’ is closed to new replies.