JSON Data Lookup
Parse JSON from a text layer and extract specific values by key.
Expression Code
// JSON Data Lookup// Apply to Source Text// Paste JSON into a text layerjsonLayer = thisComp.layer("JSON Data"); // Text layer with JSONkey = "title"; // The key to extracttry {data = JSON.parse(jsonLayer.text.sourceText);data[key];} catch(e) {"Invalid JSON";}
Paste valid JSON into a text layer. Reference that layer and specify which key you want to extract. The expression parses the JSON and returns the value for that key.