Expressions - how to parse external JSON to get key-value string rather than number
Hello,
I'd like to create an expression to call an external json file (data2.json) which contains part-of-speech (pos) tags. They are expressed as key-value pairs, eg "pos": "VERB". I would like to get pos-tagged words (eg 'VERB') and assign them a different colour.
Am an Expressions newbie - sorry! Don't know if this is even possible. So far after lots of online videos 🙂 I can
- call the 'text' string - footage("data2.json").dataValue([0]);
- call a numerical token value - thisComp.layer("data2.json")("Data")("Outline")("tokens")("tokens 1")("end")
But can't work out how to call a string value from key-value pair.
Any help much appreciated!
The JSON has this structure:
