[r116] Weird .json download from Dictionary object

0 favourites
  • 4 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • Hi,

    I'm pretty sure this is a bug.

    First, in my game, I'm using the dictionary object to handle text. Everything is working fine whitin the game, but when I try to download the .json file from the dictionary, I get this:

    <img src="http://i.imgur.com/R4nzYN5.png" border="0" />

    This is the code:

    <img src="http://i.imgur.com/w6yFlMa.png" border="0" />


    I've also tried to replicate the error on a new project, this is what happens:

    <img src="http://i.imgur.com/7aXaCpx.png" border="0" />

    And here's the code:

    <img src="http://i.imgur.com/t1xqOwq.png" border="0" />

    So maybe I'm missing something, but it seems that the dictionary value can't into spacing, but ONLY when I try to download the .json file. In-game everything works, spaces and everything:

    <img src="http://i.imgur.com/hpx9zrG.png" border="0" />


  • I can reproduce this too. This is the code:

    <img src="http://img593.imageshack.us/img593/2429/jsonbug.png" border="0">

    And this is the resulting JSON data:


    Both Chrome and Firefox generate the game .json file. Spaces are removed and placing an apostrophe anywhere truncates the apostrophe and everything following it. This also happens with array JSON data. The AsJSON expression seems to be working properly, though.

    If you need a .capx to look at, here it is.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It didn't even occur to me to test on another browser, so I forgot to mention, I tested it on Chrome.

  • Thanks, should be fixed in the next build. Try to always remember to test other browsers!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)