Working, free JSON editor

Discuss your code, get questions answered

Working, free JSON editor

Postby oliver » Sat May 08, 2010 3:58 pm

We recommend you using a JSON editor, if you intend to bring JavaScript or RPL code from your computer into ND1.
Unfortunately, it's not so easy to find a free JSON editor that will handle newlines and tabs.
I scoured the net recently in search of one, tried 5 or 6, and ended up with this one, as the only one that worked correctly:

Thomas Franz's JSON Editor at
http://www.thomasfrank.se/json_editor.html#comment77

Recommended. Works nicely.

Download it and follow the instructions in comment 77, and you'll have tabs working as well.
Equipped with a working editor you can simply paste your existing code into the "data" (aka "Definition") field of a user data item.
There's no size limit, although long pastes won't edit on the device (intentionally; there's no point in perusing kilobytes of code in a text field).
oliver
Site Admin
 
Posts: 433
Joined: Sat May 01, 2010 2:11 pm

RPL note

Postby oliver » Mon Mar 21, 2011 4:40 am

In version 1.3, ND1 supports automatic translation of transcode characters (\<<, \->, etc.) when importing RPL programs. (To pick up this feature, make sure your entry's data field starts with the sequence "\<<" (without the quotes).)
That permits easy import of User RPL code, as it usually appears formatted. (From sources like http://www.hpcalc.org/.)

Unfortunately, this JSON editor does not support the backslash ('\') character. If you paste code containing transcode sequences (or any other occurrences of backslashes, such as in regular expressions), they will get swallowed upon save, and you'll get a "bad JSON" error when importing into ND1.

I'm looking into fixing the tool and hosting a patched version on this website. This post will be updated when this happens.
In the meantime, please be aware of this caveat.
oliver
Site Admin
 
Posts: 433
Joined: Sat May 01, 2010 2:11 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron