1. #1
    Sencha User Zerogiven's Avatar
    Join Date
    Mar 2010
    Location
    Linz, Austria
    Posts
    29
    Vote Rating
    1
    Zerogiven is on a distinguished road

      0  

    Thumbs up 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.

    --------------------------------------------------------------------

    JSONpad

    Homepage: http://www.jsonpad.co.cc (<--Screenshots, Download)
    Blog: http://jsonpad.blogspot.com
    Follow JSONpad on twitter: http://twitter.com/JSONpad
    Google Code: http://code.google.com/p/json-pad/ (<--Screenshots, Download)
    Google Groups: http://groups.google.de/group/jsonpad/

    Please download the latest version from the homepage or google code.

    At least...
    KNOWN BUGS

    ... and ...

    LATEST CHANGELOG
    LATEST UPDATE v1.3.0 - 2010/06/03
    • JSON validation
    • Some design changes
    • New application code design
    • XML window got an toolbar now
    • Bugfixes


    greetings,
    Christopher Söllinger
    Last edited by Zerogiven; 3 Jun 2010 at 1:35 PM. Reason: New Update

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    143
    Vote Rating
    0
    albeva is infamous around these parts albeva is infamous around these parts

      0  

    Default


    hmmm interesting. How about syntax highlighting for the editor now :P

  3. #3
    Sencha User Zerogiven's Avatar
    Join Date
    Mar 2010
    Location
    Linz, Austria
    Posts
    29
    Vote Rating
    1
    Zerogiven is on a distinguished road

      0  

    Default


    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

    greetz
    Chris

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    143
    Vote Rating
    0
    albeva is infamous around these parts albeva is infamous around these parts

      0  

    Default


    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

  5. #5
    Sencha User Zerogiven's Avatar
    Join Date
    Mar 2010
    Location
    Linz, Austria
    Posts
    29
    Vote Rating
    1
    Zerogiven is on a distinguished road

      0  

    Default


    Quote Originally Posted by albeva View Post
    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,
    Chris

  6. #6
    Sencha User
    Join Date
    Mar 2007
    Location
    London, UK
    Posts
    143
    Vote Rating
    0
    albeva is infamous around these parts albeva is infamous around these parts

      0  

    Default


    take a look at this. http://www.extjs.com/forum/showthrea...orm.CodeMirror

    would be cool if jsno structure would be updated in real time as you edit the code

  7. #7
    Sencha User Zerogiven's Avatar
    Join Date
    Mar 2010
    Location
    Linz, Austria
    Posts
    29
    Vote Rating
    1
    Zerogiven is on a distinguished road

      0  

    Default


    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.

    thx, greetz,
    Chris

  8. #8
    Sencha User Zerogiven's Avatar
    Join Date
    Mar 2010
    Location
    Linz, Austria
    Posts
    29
    Vote Rating
    1
    Zerogiven is on a distinguished road

      0  

    Default


    Quote Originally Posted by albeva View Post
    take a look at this. http://www.extjs.com/forum/showthrea...orm.CodeMirror

    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.

    greets
    Chris

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi