JSONpad - JSON view&edit / Written with extJS-4-Air
JSONpad - JSON view&edit / Written with extJS-4-Air
Hi all,
At learning ExtJS i created this small project.
It's a JSON editor with many features (which i needed too cause i'm working a lot with JSON )
- Syntax Highlighting
- Tree View
- XML2json conversion
- JSON validation
- Add, Duplicate or Delete nodes inside the tree
- Drag&Drop Features in the tree
- ...
Please feel free if you finding bugs that you'll post it into google groups and/or google code.
The application is a Non-Profit open source project licensed with the New BSD License(http://www.jsonpad.co.cc/new_bsd_license.txt). You can get the latest source from google code.
At the moment it is "just" an Air application but a web version is planned.
sure good idea!
which i already had too about 2 weeks before
but it sounds more easy than it is
i tried a lot... like using the HTMLEditor from ExtJS and try to set color tags for example... no idea why, but the editor is not initializing in adobe air... i searched and played a lot, but i did not got it...
so my second experience was to make my own plugin for this, cause i also want line numbers in the editor .. but this also sounds much easier than it is
Cause i got many problems with setting new content into a writeable div without losing the cursor (just for example.. there were a few more problems ^^)
so i already work on syntax highlighting, but for sure it could take some time
also cause i do some smaller features first like drag&drop sort with objects/arrays and a treepath... but i'm still thinking on it
there are some pre-existing highlighting components. Look in the plugins section -there was one for extjs as well. Sorry forgot the name of teh package
there are some pre-existing highlighting components. Look in the plugins section -there was one for extjs as well. Sorry forgot the name of teh package
hmm hope that it isn't a HTMLEditor or just a DIV showing text in colors, cause i want it editable
Cause i think the problem that the HTMLEditor is not initializing correctly is much more complex than the syntax highlighting.. The highlight itself isn't what me block.. cause for a JSON Highlighting i just need a few regex's.
What i need would be a Textarea which can view HTML (for colorize). So the HTML TextArea can't do that, so i've to use a WSIWYG (bad that the ExtJS one not working at me) or make my own..
but i'll take a look this evening if i'm finding a working plugin. And i'll post today a topic to ask for the Ext.form.HtmlEditor Problem in Air.
Thanks for this!
i just hope there is no eval in the code... however if it is i'll use that as base... the javascript wrapper did not work so good for JSON strings, but i think it's not too hard to write an own one.
The Adobe Air Sandbox is the only one problem where i can't use something like eval (and a few other javascript functions) for security reasons.
would be cool if jsno structure would be updated in real time as you edit the code
Got it! Was a bit of work, cause the user extension also not worked out of the box in air... but it helped a lot, thanks
A XML converter is in now too, maybe you like it.