0 Favourites

Dictionary/Array JSON export without C2 wrapper

  • Hi (@Ashley),

    I have quite a bit of trouble with moving data via JSON export from Dictionaries and Arrays to other programs. I need to reparse all my structure to generate "genuine" JSON, and am still working on this code and its brittle. Its all lots of recursive structures, five levels down with an element of dynamism (some are four or three levels down, and some are five).

    It would be really great, if there was a JSON export geared for interoperability without C2s Dictionary and Array wrappers. This could then be imported straight into other programs -- such as Mathematica (where i want to do all the data visualization).

    thanks,

    Dan

  • Construct 2's dictionary/array formats are not totally interoperable with JSON. For example you cannot have objects or arrays inside dictionary values. This is why C2 uses a variant of the format. It should not be difficult to convert between the two though (no recursion should be necessary!)

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Thanks.

    In the end I (nested) looped (with conditions) through all the dictionary structures and used the JSON plugin to recreate JSON. Took some time to work out.

    Would there be value to have a compatible JSON export on dictionaries and arrays?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
Spriter/C2 - Spriter 2 Teaser!
1,800 322,246
tarek2's avatar
tarek2
Unread sticky
763 305,698
asikanddestroy's avatar
asikanddestroy
Unread hot topic
0 Favourites
New Android Export Experiences
494 67,274
jabk's avatar
jabk