How do I modify JSON data before it downloads?

  • Hi all,

    First off I just want to say I have been working with Construct 2 as a prototype/level builder for a few months now and ever since you guys helped me with an export problem it has made my life so much easier, so thanks for that!

    Currently I'm curious about ways to make my level exporter more efficient. In my current project I have made a level creator that represents the level as an array which is then downloaded as a JSON file.

    Before the engine the programmer is using can read in the data from the JSON file I have to run it through a macro I made on Notepad++ using regex to clear away some of the unnecessary factors (such as {"c2array":true,"size":[25,40,1],"data":, quotation marks, square brackets and commas) , then sort the data into rows as C2 just prints the whole thing on one continuous line. Is there any way this can be done within Construct 2?

    Any assistance would be appreciated.

    Thanks all!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)