ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

get JSON key

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Robin de Man
get JSON key
on Mar 10, 2020 at 1:14:27 pm

I've been searching the net but couldnt find am answer so i'm hoping someone here can help.

I have a JSON file in cc 2020:
{
"language": {
"english": {
"titles": {
"001": "My First Title"
}
},
"dutch": {
"titles": {
"001": "Mijn eerste Titel"
}
}
}
}

Now i would like to read the keys from the language, so "english"and "dutch"

Greetz Robin


Return to posts index

Scott McGee
Re: get JSON key
on Mar 10, 2020 at 2:07:05 pm

I'd personally array your subtitles and reference them this way

var txt = footage("test2.json").sourceData;
txt.language.dutch.titles[0]


{
"language": {
"english": {
"titles": [
"My First Title"
]
},
"dutch": {
"titles":[
"Mijn eerste Titel"
]
}
}
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]