How to parse JSON?

over at https://vvvv.org/contribution/json-parser @andresc4 asked:

I would like to filter bitcoin price from here
https://api.coinmarketcap.com/v1/ticker/?limit=10
but im not getting how to use this

that JsonParser contribution is kinda obsolete since meanwhile we have a node that does that shippping with vvvv: AsXElement (JSON)

see this example for how to use it in your scenario:

JsonParse.v4p (6.5 KB)

the idea is that you parse the JSON to XElement which you can then run convenient XPath queries on, using the GetElements (XElement ByXPath) node

was about to post this haha, too late. though quite more basic query.

1 Like

thank you @joreg and @tgd
this next one is a more basic question, im getting old and rusty…
im sure is a super simple one but my brain is stuck

with swapdim

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.