You are currently working on UAT 

json files

Does anyone have experience how to handle best json-format in Studio? Is there a appropriated filter somewhere out here? We got this format in a csv which we had to modify severely in order to get it in Studio. Thanks in advance for your hints!

Martha Ebermann

Parents Reply
  • Paul Filkin said:
    Just to close that off... the problem was with the JSON file as it was incorrectly formed. Seemed to contain some leftover javascript on the first line of the file.

    In that case it maybe wasn't supposed to be a JSON file, but a JavaScript snippet containing an object variable definition (especially if it had a ".js" extension, not ".json").

    Many people confuse those two because the format looks very similar to JSON (of course, because JSON means "JavaScript Object Notation") and they don't have enough technical experience to see the difference.

    For example the following screenshot shows a JavaScript code snippet containing a call of "SC.stringsFor" function with two parameters: a language code and a JavaScript object consisting of a dictionary containing a few hundreds of key-value pairs.
    Although the file looks very similar to JSON, it is not JSON.

Children