Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Robin De man on March 10, 2020 at 1:14 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

    Scott Mcgee replied 6 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Scott Mcgee

    March 10, 2020 at 2:07 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"
    ]
    }
    }
    }

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy