We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

After updating an old project, read JSON puzzle can’t interpret data

Home Forums General Questions After updating an old project, read JSON puzzle can’t interpret data

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #81591
    johngrigni
    Customer

    I can load in a txt file with JSON data, but it can’t interpret it. I’m attaching the error from the console. I’m also attaching the puzzles in question – the first ‘print to console’ works, but not the second. I tried it without the ‘Read JSON From’ puzzle and it set a second error (also attached).

    Any help would be appreciated.

    Attachments:
    You must be logged in to view attached files.
    #81595

    Hi,
    It appears there is a syntax error in “read json” (and this puzzle is required in your case). Try to console.log loaded data first to see if the content of your text file is correct. Alternatively, use some online JSON validation tool.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #81608
    johngrigni
    Customer

    But the JSON file is unchanged. It works before making any changes to the puzzles or updating the app, and doesn’t work afterward. If it matters, the original was done in verge3d 4.5

    #81612

    Looks like something has changed…
    Could you please share what printed to the console if you place “print to console” → “loaded data” right before JSON parsing? Also what kind of server you use? And lastly, is it possible to attach the salamanderCabinetJson.txt file here?

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #81613
    johngrigni
    Customer

    Here is what shows on the console. I’m also attaching the txt file.

    I’m not sure what you mean by server, I’m working on a Macbook M1 Air 2020, running Sequoia 15.4.1. The verge version is 4.9.2, but the app still says 4.5.1 (as you can see in the screenshot)

    Attachments:
    You must be logged in to view attached files.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.