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 layer

jsonLayer = thisComp.layer("JSON Data");  // Text layer with JSON
key = "title";   // The key to extract

try {
  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.