Prototype Json Editor

33 views
Skip to first unread message

kstubs

unread,
Aug 15, 2011, 3:10:59 PM8/15/11
to prototype-s...@googlegroups.com
I'm looking for a Json editor for the Admin side of my website written for Prototype.  Any recommendations?

shellster

unread,
Aug 16, 2011, 5:49:31 PM8/16/11
to Prototype & script.aculo.us
I don't know what you are asking. There are certainly editors which
help you write valid json, but it isn't complicated. Prototype should
accept any valid JSON that you write. Typically what you want to do
is to build a structure or array of data in your server scripting
language, then use an appropriate library to "serialize" the structure
or array into JSON which you return to the browser.

For how to write proper JSON as well as a list of various JSON
libraries in multiple languages, go to json.org

kstubs

unread,
Aug 17, 2011, 2:51:18 AM8/17/11
to prototype-s...@googlegroups.com
Thanks for the reply. I'm looking to host my own.  I maintain some static JSON files for use by my website.  I'm looking for a utility that I could plug into my admin console to edit the static JSON file.  Currently I use these 2 sites to edit, validate, and format my JSON:


Karl..

shubhojoy

unread,
Aug 17, 2011, 4:37:40 AM8/17/11
to Prototype & script.aculo.us
I usually use backend PHP json_encode to transform data (in arrays) to
JSON.

I also have a class to convert XML data into arrays that can be easily
translated into JSON using json_encode. Works very well for me.

At the front end, you can see JSON data represented in a tree format
with Firebug. The online tools look nice: good for validating.

Finally, PrototypeJS always does a neat job of parsing JSON data for
use...
Reply all
Reply to author
Forward
0 new messages