JSON Formatting

Any idea why this json wont parse? I am an XML-er and am trying to integrate JSON into a Corona project

{

    “en”: {

        “text0001”:“Hello world!”

    }

    “fr”: {

        “text0001”:“Bonjour le monde!”

    }

    “pt”: {

        “text0001”:“Olá mundo!”

    }

    “zh-Hant”: {

        “text0001”:“世界你好!”

    }

    “zh-Hans”: {

        “text0001”:“世界你好!”

    }

    “de”: {

        “text0001”:“Hallo Welt!”

    }

    “it”: {

        “text0001”:“Salve mondo!”

    }

    “ja”: {

        “text0001”:“世界よ、こんにちは!”

    }

    “es”: {

        “text0001”:"¡Hola mundo!"

    }

}

You need commas after each element in your list, like this:

{

    “en”: {

        “text0001”:“Hello world!”

    },

    “fr”: {

        “text0001”:“Bonjour le monde!”

    },

    “pt”: {

        “text0001”:“Olá mundo!”

    },

    “zh-Hant”: {

        “text0001”:“世界你好!”

    },

    “zh-Hans”: {

        “text0001”:“世界你好!”

    },

    “de”: {

        “text0001”:“Hallo Welt!”

    },

    “it”: {

        “text0001”:“Salve mondo!”

    },

    “ja”: {

        “text0001”:“世界よ、こんにちは!”

    },

    “es”: {

        “text0001”:"¡Hola mundo!"

    }

}

There are a few online tools to help you validate your JSONs, like this one: http://jsonlint.com/

  • Andrew

It is always the little things :wink:

Thanks!

You need commas after each element in your list, like this:

{

    “en”: {

        “text0001”:“Hello world!”

    },

    “fr”: {

        “text0001”:“Bonjour le monde!”

    },

    “pt”: {

        “text0001”:“Olá mundo!”

    },

    “zh-Hant”: {

        “text0001”:“世界你好!”

    },

    “zh-Hans”: {

        “text0001”:“世界你好!”

    },

    “de”: {

        “text0001”:“Hallo Welt!”

    },

    “it”: {

        “text0001”:“Salve mondo!”

    },

    “ja”: {

        “text0001”:“世界よ、こんにちは!”

    },

    “es”: {

        “text0001”:"¡Hola mundo!"

    }

}

There are a few online tools to help you validate your JSONs, like this one: http://jsonlint.com/

  • Andrew

It is always the little things :wink:

Thanks!