[plugin] JSON (import/export/generate/edit/inspect/...)

From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • I do not know why but I tested with JSON++ and it worked normally (testing at NWJS).

    Cheers.

  • Thanks it work's

    I just add this at line 1

    header("Content-type:application/json");
    header("Access-Control-Allow-Origin: *");[/code:2dq40n78]
    
    
    

    you can easily see that you don't send the proper cors header, and that's what construct is complaining about

  • .php recently changed and it's work

    I do not know why but I tested with JSON++ and it worked normally (testing at NWJS).

    Cheers.

  • Nandynho

    Well, yeah NW.js doesn't have the same limitations as chrome or firefox, so CORS headers aren't required. It works with either JSON++ or my plugin (:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I understood! It was looking strange for me, it was working with AJAX and JSON. I think I tested it after you changed the headers.

    Good luck in your projects!

    Cheers.

  • Hi there,

    New version 1.2.2

    Now all the code and documentation is hosted on github

    You can download it here:

    JSON v .2.2 (2018-02-08)

    • ChangeLog

      v1.2.2 - 2018-02-08

      • Fix: Properly handle deprecated expressions
      • Fix: A debug function was being removed on export but still being called

      v1.2.1 - 2017-08-27

      • Fix: renamed the deprecated Length Expression to Size by mistake, which broke some old capx

      v1.2 - 2016-06-05

      • New Shared Reference system
      • Push and Pop Path Node into CurrentPath
      • Fix: Delete on array was setting the item to undefined without removing it, so Length and Size wasn't displaying the proper value
      • Fix: Delete and Clear in general (I was doing something stoopid)

      v1.1 - 2014-04-17

      • implement save/load/debugger
      • ToJson deprecated and replaced by AsJson for overall coherence
      • change the brackets syntax for a less confusing one (I hope)
      > before: root["Wizard","stats","hp"]
      after: root@"Wizard","stats","hp"
      

      • change Length for Size and handle object/array return -1 for anything else
      • isEmpty condition and Clear action for array and object
      • add a CurrentValue property
      • in foreach loop reset the current path to the path given at the begining on each iteration, this way we can mess with this current path to our heart content within the loop
      • more reliable logData
    • Archive

    Hello, I need this plugin for C3. Do you have any for sale?

  • derikvlog Nope, I don't use C3

  • Anyway to format the output on save? Now its all on a single line.

  • lwgames

    If it's just for you to read it, you can simply copy paste it in some tools like

    jsonlint.com

    You can also, if I remember correctly, check your data in the debugger and it should be prettified

    Otherwise, as far as I remember, I haven't put any prettifying feature in the json output.

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