Jsoneditor Js Download

0 views
Skip to first unread message

Florine Nogoda

unread,
Jan 20, 2024, 10:32:59 PM1/20/24
to tcasinnalza

Hi @campopianoa . I am looking to do something similar and have a JSON viewer in my app. When I look at your clone I see that there are some libraries not there from ._anvil_designer import json_displayTemplate. Wondering how you got the JSON into the form? Note: I am a novice at GUI?JavaScript.

jsoneditor js download


DOWNLOAD ⚹⚹⚹ https://t.co/SKvGrk31pV



jsonedit provides a flexible and helpful interactive tree-like view of listsor really any R dataset that can be represented as JSON.Eventually, this could become a very nice way to not only view but also modify R data usingShiny.

list or String data to view. Although designed for lists, listdata canbe any data source that can be rendered into JSON with jsonlite. Alternately,listdata could be a String of valid JSON. This might be helpfulwhen dealing with an API response.

list of other options for jsoneditor. This is a temporary wayof trying other options in jsoneditor. In the future, this will be eliminatedin favor of specific, more self-documenting and helpful arguments.

The standalone bundle contains all dependencies of vanilla-jsoneditor, for example lodash-es and Ajv. If you use some of these dependencies in your project too, it means that they will be bundled twice in your web application, leading to a needlessly large application size. In general, it is preferable to use the default import JSONEditor from 'vanilla-jsoneditor' so dependencies can be reused.

A plot definition is a JSON document that contains many settings that define what and how will be plotted graphically or exported as data tables. In case if some adjustments are needed, the plot document can be cloned under a different name and edited by the expert user in the jsoneditor widget.

To edit the current plot document, click on the "pencil" button next to the plot name in the "Plot..." row. The jsoneditor widget appears with various sections that can be explored by expanding/collapsing upon clicking the triangles.

Click the triangle near "titles" entry to expand it, as shown above. Edit the title by replacing words "CO2 or salt ingress" with "Carbonation" and click on the green tick in left-upper area to close the jsoneditor. The graph will be redrawn to show the new title.

Open the plot definition in jsoneditor again. Legends used in rendering plot frames are located in the "legends" JSON array (list), which contains 9 elements. Expand these one-by-one to find "Constituent", which is also a list, and expand its elements one-by-one until "Ferrite" (as shown below). Alternatively, type "Ferrite" in the search field in the upper-right corner and press Enter.

Each entry of the legend contains the name of respective object in the step recipe document, and the color shown as a small square sample and a numerical code. Luckily, jsoneditor allows to choose colors from a palette that appears upon clicking on the square sample:

Now, type "Sr" in the search field and, perhaps after several "next" clicks, find a "name": "Sr" entry in the "el" legend (legend #4). Click on the magenta square color and change it in the palette to pale-gray (code #c2c2c2 or close to it). Click on the green tick button in the "Plot..." row to close jsoneditor and introduce changes to the "augmented" plot document.

Let us, for example, take a look at how the sampling of volumes of residual constituents and equilibrated phases is defined. To do that, open the plot document in jsoneditor (click on the "pencil" button next to the plot name in the "Plot..." row), and type "Volume," in the search field. This should bring you to the "Volumes" ordinate definition. The sampling of data is described in the "dataset" subdocument, where the first of three entries look like (partially expanded):

Is there any way to fix it or have to wait for an update? while I'm at it I'd like to make a feature request, is it possible to add a "Design" view in the future? like the XML Editor plugin, so I don't accidently edit out a parenthesis or other json delimeters.

Decent plugin. It does basic json formatting and syntax highlighting, however it has one "feature" which renders it un-usable. It will randomly, seemingly without a pattern highlight entire blocks of json. So if you're typing this means that the entire block is replaced. Not an acceptable thing for a code editor to do!

I am using Ubuntu 13.04 (Kernel 3.5.44) Unfortunately, this plug in starts acting up and does not allow the json file to be saved with a NullPointerException (no further info provided by Eclipse). It hampered my delivery efforts.

jsonedit provides a flexible and helpful interactive tree-like view of lists or really any R dataset that can be represented as JSON. Eventually, this could become a very nice way to not only view but also modify R data using Shiny.

I don't know any readymade editor, but you can use jq to reformat your json ad then use any texteditor. With vim and emacs you should even be able to add commands to prettify/minify the displayed json.

The download has been tested by an editor here on a PC and a list of features has been compiled; see below. We've also created some screenshots of JSONedit to illustrate the user interface and show the overall usage and features of this json editing program.

  • 2010.05.12 Version 0.1.
  • 2010.06.24 Version 0.2.
    • removed ridiculous default RichEdit text length limit,
    • empty array no longer changes to null object upon conversion from object tree to text,
    • added standard items (Undo/Cut/Copy...) to text editor,
    • added Copy/Paste as sibling/Paste as child to JSON tree context menu; when exchanging data with clipboard JSON text format is used - you can copy any text representing valid JSON object to clipboard and paste it as tree node,
    • added dialog to change parent type when trying to add child to node other than array or object.

  • 2010.07.27 Version 0.3.
    • removed cc3270mt.dll dependency,
    • added find in text function for text editor view.

  • 2010.08.19 Version 0.4.
    • storing active view (tree or text) selection in ini file,
    • F3 = Find Next (searching still works in text view only),
    • name and type of root branch/object and name (representing index like [0], [1],...) of array item is not editable to prevent confusion,
    • when using auto-update in tree view and editing integer or float value data is not updated if current text is empty or it is just "-"; prevents annoying exceptions when erasing previous text or trying to enter negative number,
    • tree nodes are reused when loading new structure - nodes will stay expanded and in the same position when loading new file if similar (comparing name paths) nodes existed in previous structure, this is helpful when comparing two JSON files,
    • added some trivial node moving through "drag and drop".

  • 2010.08.30 Version 0.5
    • FIXED regression: huge CPU usage when parsing arrays with large item numbers introduces with tree reuse; this fix does not apply to objects with large children count - if you're working with large data sets (few MB or more) you may want to turn off tree reuse function (Settings/Editor),
    • name of file to open can be passed as command-line parameter,
    • Settings window: added button to associate .json files with application,
    • default directory for file open/save is stored in ini file,
    • GUI responsiveness improvement: text update is delayed until text is needed when editing nodes in tree mode,
    • added "Expand all" and "Collapse all" to tree context menu.

  • 2010.09.14 Version 0.6
    • FIXED: default directory was updated only when opening file using command line,
    • handled dropping file to application window action,
    • large speed-up of recursive expand/collapse functions,
    • added "Reformat" tool; files formatted in a same way (indented formatting is much useful here that compact formatting) are easy to compare or merge with common tools intended to work with plain text files (WinMerge, "Compare By Content..." from Total Commander),
    • added selection of output text formatting (compact or indented); selected format is used when generating text based on tree structure, copying tree node to clipboard and reformatting text,
    • added option to search backwards in text view,
    • added searching inside tree (comparing with node names, node values or both); float values are matched with 1% accuracy margin.

  • 2010.09.18 Version 0.6.1
    • FIXED: no quotation marks around command line parameter written to registry when associating with .json files - problem with opening files located in folders with space in it's name; if you've associated application with .json files previously, you have to use "Associate" button again to write new command line string,
    • root node is expanded when parsing new text.

  • 2011.02.28 Version 0.7
    • changed "drag and drop" behavior: default action is copy, if shift is pressed node is moved; added custom copy/move cursors similar to used by Windows Explorer or Total Commander,
    • added Most Recently Used files list,
    • added File/New menu item creating empty "root" node (setting text to ""); "" is also set as default text at startup,
    • minor fixes: renaming moved node parent subnodes on "drag and drop" (keeping array elements index text consistent with real index), checking if there is no duplicated node name when copying/moving nodes, set minimal width and height of main window, set anchoring for node name/value edit fields.

  • 2011.05.27 Version 0.8
    • FIXED: incorrect matching when searching for node values, i.e. "1." was matched with integer type node with value = 1,
    • added "Clone N times" to node context menu,
    • added simple node + its subnodes statistics (intended to help with memory usage estimation for DOM parser).

  • 2011.11.05 Version 0.8.1, thanks to Tito Bouzout for suggestions
    • added file name and directory to application title,
    • added File/Save (previously: only File/Save as... available) to menu,
    • changed string value editor to multiline; node name is still edited as single line,
    • when editing int or float node incorrect input (text that is not a number representation) is indicated with red color instead of default exception message,
    • FIXED: incorrect int/float node values when node type was changed to int/float and node value was not a valid number; falling back to previous type if invalid node value was not corrected.

  • 2012.03.03 Version 0.8.2 JSONedit_0_8_2.7z
    • FIXED: object with no children no longer changes to null type when converting from tree to text,
    • user interface clean-up
      • removed "Parse and update" from text editor context menu; text is parsed if it was changed each time when switching from text view to tree view,
      • "Node statistics" moved from context menu to "Tools",
      • removed "Update node" button and "Update immediately" checkbox as most likely useless ("Update immediately" never unchecked by the users),
    • new file (File/New) gets default name "New1.json", "New2.json", etc.,
    • added warning dialog regarding unsaved changes in current file when opening new file or closing application,
    • unsaved changes: marking a modified file in the editor with an asterisk next to its name,
    • added JSON examples to Help menu: examples from json.org, miniscope v4/sig_test.dll configuration and gdata.youtube.com search query result.

  • 2012.03.10 Version 0.9 JSONedit_0_9.7z
    • added CSV import function (CSV to JSON converter),
    • node names edited as multiline - most likely not useful, but allows testing import of CSV files with newlines inside quoted fields.

  • 2012.03.15 Version 0.9.1 JSONedit_0_9_1.7z
    • FIXED: unacceptable precision reduction when printing floating point values (thanks to eyemedia for the report),
    • FIXED: when unparseable text was pasted with "Paste as root from clipboard" RMB menu option few times it was multiplied in text editor.

  • 2012.05.12 Version 0.9.2 JSONedit_0_9_2.7z
    • added simple HTTP client with JSONP callback stripping (thanks to Tielman de Villiers for the suggestion).

  • 2012.07.13 Version 0.9.3 JSONedit_0_9_3.7z
    • added few shortcuts (Ctrl+S, Ctrl+Shift+S, Ctrl+N, Ctrl+O), thanks to Martin for the suggestion.

  • 2012.08.01 Version 0.9.4 JSONedit_0_9_4.7z
    • added option to keep names of the nodes copied through clipboard (additional JSON wrapper is holding node name); by default copy/paste still uses plain JSON representing node; thanks to Peter for the suggestion. This option is limited to copying from/to JSONedit. If two JSONedit instances are used as source and destination it has to be enabled in both instances to work correctly.

  • 2012.08.08 Version 0.9.4.2 JSONedit_0_9_4_2.7z
    • fixes related to multi-monitor environments: Position changed to poOwnerFormCenter, modified standard dialogs behavior; thanks to Peter for the suggestion.

  • 2012.08.15 Version 0.9.5 JSONedit_0_9_5.7z
    • FIXED: disappearing node type selector when reducing window size,
    • added array generator using embedded Lua interpreter.

  • 2012.09.09 Version 0.9.6 JSONedit_0_9_6.7z
    • changed text editor from TRichEdit to Scintilla - syntax highlighting, code folding, braces matching, line numbering. This is relatively big change, so in case of problem - as always - try previous version.

  • 2013.01.21 Version 0.9.6.1 JSONedit_0_9_6_1.7z
    • FIXED: document content was reverted back when "Reformat" was used after new text was entered in text mode. It was hidden if view was switched to tree. Thanks to Dan Hersam for the report.

  • 2013.02.11 Version 0.9.7 JSONedit_0_9_7.7z - adding support for comment (which by the way you shouldn't use unless you've got really good reasons)
    • collecting comments by parser - configurable option,
    • displaying and editing comments in tree view; using javascript-style comment marking with // or /**/ is required, on the other hand line and block comments (or even empty lines) can be mixed freely,
    • tree editing panel width is stored in configuration.

  • 2013.03.09 Version 0.9.7.3 JSONedit_0_9_7_3.7z
    • FIXED: comment edit control color not reverting back to normal after entering incorrectly escaped comment and switching node,
    • FIXED: parsing/validating JSON: generating error when non-white characters are found after closing bracket (typically due to misplaced closing bracket in the middle of text), thanks to Toshiyuki for reporting,
    • added partial font selection (for tree control, for Scintilla text editor and for editing controls) as suggested by Sungwook.

  • 2013.04.04 Added ListJson.wlx - JSON viewer plugin for Total Commander (32-bit only) based on JSONedit code. Function set is limited and I believe only usage of this plugin would be Total Commander Quick View function (Ctrl+Q).
  • 2013.05.07 Version 0.9.7.6 JSONedit_0_9_7_6.7z
    • FIXED: after launching JSONedit using command line and relative path to edited document Save function worked as Save as displaying save dialog with initial directory different that source directory (thanks to Michael for reporting); source paths are converted and stored in history as absolute,
    • F2 in tree view is assigned to in-place node rename (suggestion from Samuel),
    • new option for JSON parsing: treating control characters (U+0000 through U+001F) inside strings as errors (stricter parsing - suggestion from Michael).

  • 2013.12.10 Version 0.9.7.8 JSONedit_0_9_7_8.zip
    • new file is created when file specified with command line does not exist,
    • tree view: assigned Ctrl+C (copy node) and Ctrl+V (paste as child) shortcuts.

  • 2014.03.08 Version 0.9.7.9 JSONedit_0_9_7_9.zip
    • tree view, context menu: added (beside "Expand All") function expanding 1 to 5 nested levels,
    • Help: added RFC 7159, RFC 4627 and RFC 5234 (ABNF) text,
    • FIXED: previously manually changing root node type was not allowed - RFC 4627 states that json text can be object or array, updated RFC 7159 allows any type,
    • tree view: null value is shown in same way as true/false.

  • 2014.05.24 Version 0.9.7.12 JSONedit_0_9_7_12.zip
    • FIXED: Ctrl+C/Ctrl+V shortcuts action now depends on currently active component, i.e. it copies text when edit field is active but copies whole nodes when tree is active (thanks to Michael for reporting regression),
    • FIXED: missing focus when switching from text view to tree view and back,
    • Scintilla caret width increased to 2 pixels.

  • 2014.06.16 Version 0.9.8 JSONedit_0_9_8.zip
    • Tools: C++ class generator (experimental)

  • 2014.08.24 Version 0.9.9 JSONedit_0_9_9.zip
    Improved keyboard-only workflow and few other minor tweaks, thanks to Brother Gabriel-Marie for suggestions and testing:
    • configuration: added option to disable Tabs in tree view edit controls (use Tabs to move focus rather than character),
    • added Up/Down buttons for reordering array elements (+ replacing "Node name" with "Node index" for array elements),
    • added *.txt filter to open and save dialogs,
    • configuration: added option to select text in edit control on entering,
    • disabled TabStop property for TPageControl in editor (most likely just unnecessary step when cycling through controls with Tab),
    • assigned shortcuts for "Add child" (Ctrl+H) and "Add siblings" (Ctrl+B) actions in tree view,
    • settings: added "running with admin rights required" note next to button associating application with *.json files,
    • resized "About" window for better license texts readability.

  • 2015.07.26 Version 0.9.10 JSONedit_0_9_10.zip

    • tree view: coloring nodes (text + background, see new configuration page added) according to their type

  • 2015.08.30 Version 0.9.11 JSONedit_0_9_11.zip
    • Array generator: added CSV import to tree context menu (2 out of 3 conversion styles available)
    • View/Line wrap (or Ctrl+W): toggle line wrapping for text view
    • switching immediately to text view if opened file could not be parsed
    • search dialog: supplying as default text selected from text view or text from selected node

  • 2015.09.16 Version 0.9.11.1 JSONedit_0_9_11_1.zip
    • long-awaited (thanks for suggestions to Michael Maron, Sean Sherrard, B.G.M., Todd Matthews, Darwin Sanoy) option to keep object elements order preserved (Settings/JSON, by default old behavior is kept,that is object elements are sorted alphabetically by name)
    • auto-expanding root node after switching from text to tree if text was changed and after pasting text as root from clipboard

  • 2015.09.17 Version 0.9.12 JSONedit_0_9_12.zip
    • object elements sorting if disabled (order is preserved) in default configuration
    • tree view: buttons to move elements of the object up/down (available only if sorting is disabled)

  • 2015.09.21 Version 0.9.13 JSONedit_0_9_13.zip
    • FIXED: not working since 0.9.7.8 "Paste as sibling from clipboard" (thanks for reporting to Darwin Sanoy)
    • "Paste as sibling from clipboard" inserts new data immediately after selected node instead of inserting at the end

  • 2015.09.27 Version 0.9.14 JSONedit_0_9_14.zip
    • checking source file for UTF BOM
      • option to skip UTF-8 BOM before passing to parser
      • files written to disk by editor are always without BOM - it appears that in many applications UTF-8 without BOM is required
      • notifying that UTF-16 and UTF-32 are not supported if file appears to use these encodings
    • in-place value editor for tree - assigned to F4 key
      • complementary to editing node name with F2
      • works with primitive values (string, int, real, boolean)
      • string value editing (same as with name editing) is mostly limited to sigle-line text, i.e. in-place editor silently displays multiple lines as single one not allowing inserting newlines (although existing newlines are preserved)
      • for boolean value "0" and "1" are accepted as well as "false" and "true"
    • log: added execution time measurement for basic operations (parsing and generating JSON, building tree)
    • smarter auto-expand (expanding nodes when new text is loaded)
      • new setting, number of levels to auto-expand, 1 (default, only root expanded) ... 5
      • if number of levels to auto-expand is higher than 1 auto-expanding is continued recursively but stops if number of visible nodes would be higher than 30
  • 2015.11.08 Version 0.9.15
    • FIXED issue with incorrect JSON generated for high-precision float point values (1000000000000000.0, 1000000000000000.1 => "1000000000000000.")
    • minor fix making double used consequently instead of float
    • using 64 bit signed and unsigned integers (instead of 32 bit signed used previously)
    • examples: added PaleMoon/FireFox bookmarks file (this example is making use of 64 bit integers)
    • few cherry-picked updates for json-cpp
    • settings: selectable (default: string instead of previously used null) type for new nodes (add as child / add as sibling)
    • settings: option to automatically activate in-place value editor (same as assigned to F4) for newly added nodes
  • 2015.11.18 Version 0.9.15.1 JSONedit_0_9_15_1.zip
    • fixed uint64 entry (e.g. 18446744073709551615 = 2^64 - 1) from value edit on right panel
    • fixed problem (apparently bug in sscanf TC++ implementation, tested for comparison MinGW behaves correctly) with sscanf and negative (only negative) values with more than 32 significants bits (with TC++ more significants bits are all set to 1)
    • fixed/restored out-of-range indication (i.e. red color for edit box) for entered integers / unsigned integers that don't fit in 64 bits
    • more precise error location info when parsing/validating text (moving cursor to the column from parser error location - useful for unformatted invalid JSON)
  • 2015.12.20 Version 0.9.16 JSONedit_0_9_16.zip
    • Scintilla-based editor for Lua (previously used with Script.dll plugin for tSIP softphone)
    • Lua scripting window is available from Tools menu (apart from previous array generator available in tree context menu)
    • optional preprocessing of name/value entered in tree view with Lua
  • 2016.01.30 Version 0.9.17 JSONedit_0_9_17.zip
    • Ctrl+A (Select all) works in node name/value/comment edit boxes
    • added "Duplicate node" (Ctrl+D) to node context menu; works both with array and objects (manual rename for object children is required to remove name conflicts)
  • 2016.04.06 Version 0.9.18 JSONedit_0_9_18.zip
    • snippets, stored as JSON files in "snippets" subdirectory
      • store selected node with optional description into file for reuse
      • load snippet into selected node
  • 2016.06.14 Version 0.9.19 JSONedit_0_9_19.zip
    • limited printing precision of floating point values from 17 to 16 digits to get rid of nasty 25.7 -> 25.699999999999999 transition after parse + generate cycle
    • nicer statistics window: allowing copying text, fixed values align for large files
    • search dialog for tree view allows to specify/limit node types, allowing e.g. limiting searching to "0" strings, ignoring all numerical values
    • FIXED: pseudo-names for array elements ("[0]", "[1]", etc.) are ignored when searching in tree mode
  • 2016.10.08 Version 0.9.20 JSONedit_0_9_20.zip
    • new view - list - focused on filtering and navigation
      • fast filtering similar to "Find" dialog
      • context menu: Go to tree
      • basic in-place value editing (Enter or double click, Enter to accept, Esc to abort)
  • 2016.12.17 Version 0.9.21 JSONedit_0_9_21.zip
    • FIXED: after Expand All / Expand # levels tree was scrolled to last expanded node - often seemingly random place
    • FIXED: scrolling through array with large number of items in list view was slow
    • FIXED: flickering for list view when e.g. scrolling (double buffering)
    • added font selection for list view
    • node (background + font) coloring works also in list view, sharing settings with tree view
    • list view: displaying filtered and total node count
    • Tools menu: export content of list view as CSV
    • added option to load automatically last file at startup
  • 2017.02.11 Version 0.9.22 JSONedit_0_9_22.zip
    • Tools menu: experimental, very relaxed pseudo-JSON parser, alternative method of prototyping structures for further pasting into main editor
    • FIXED: no brace matching for JSON text view (incorrectly selected Lua highlighter since 0.9.16)
    • FIXED: edit panel was not updated (showing still values from document) when document was reloaded in tree view and no node was selected; root node is now selected as default
    • FIXED: default directory for file open dialog was not updated if file was loaded using drag-and-drop
  • 2017.04.22 Version 0.9.23 JSONedit_0_9_23.zip
    • added "Remove obsolete files" and "Clear list" items to MRU lists in main window and Lua script window
    • added option to edit in-place tree node value on double click (like with F4)
    • nodes can be deleted from list view
    • added font selection for relaxed parser tool
    • FIXED empty array processing in relaxed parser tool
    • FIXED inconsistent state of node edit panel (showing old values until new node is selected after switching to text view, editing and switching back)
    • deleting root node resets it to empty object (also fixes "Invalid index" if switching to list view when tree is empty)
  • 2017.06.09 Version 0.9.24 JSONedit_0_9_24.zip
    • added indentation string (e.g. 4 spaces or single tab, but any string can be used) setting for generated JSON text; current (3 spaces) is left as default
    • FIXED empty object processing in relaxed parser tool (following text was ignored)
    • List view:
      • multiselect
      • Copy/Paste (popup menu + Ctrl+C/Ctrl+V) for primitive values
      • Copy/Paste (popup menu only) for node names
      • added popup menu for node types selection: Select all/none/invert
      • added "Add children if parent is matching" filtering option
    • FIXED crash when generating JSON text from tree with duplicated node names when type of second node different than type of first node
    • CSV import dialog: window size changed to fixed
  • 2017.08.20 Version 0.9.25 JSONedit_0_9_25.zip
    • "Add node(s)" context menu function in list view; works with multiselect
      • adding new nodes to selected nodes as children or siblings
      • options to add primitive node types or JSON directly (for objects, arrays or complex structures)
      • dialog for changing parent node(s) to either object or array if required
    • added node sorting function to context menu for tree and list views; settings for sorting according to ASCII/ANSI order with/without case sensitivity and for recursive sorting; this function is intended to be used with setting preserving node order (default, as opposed to node sorting by JSON parser/generator)
    • changed settings format to JSON; application imports old config (.ini) file if new (.cfg) file is not found; note: editing own settings from running application instance would not work as settings will be overwritten when closing application
    • added "Delete all siblings before node" to tree view
    • delaying list view refreshing when e.g. typing filter text if file contains more than 20000 nodes to prevent typing hiccups
    • FIXED: opening Lua script window was changing application title
    • FIXED: changing node type selection in list view using space key or context menu was not updating filter immediately
  • 2017.10.21 Version 0.9.26 JSONedit_0_9_26.zip
    • added setting for string separating name from value in objects (default: " : "); together with indentation stringthis is supposed to allow to reduce VCS delta for files edited with JSONedit
    • FIXED: if last character of indent string was other than space (e.g. single tab was used) generated JSON contained extra newlines
    • updated Lua to version 5.3 (as in tSIP) and added some custom Lua functions
    • added Lua event mechanism (basically copied from tSIP), there is single "on file save" event at the moment with the purpose of extra formatting / postprocessing
    • new setting ("JSON" settings tab, opt-out): validate text as JSON when saving (applies to editing as text only, preventing accidentally saving invalid JSON)
    • added new menu item: File / Open current file directory
    • Tools: added JSON streaming viewer (newline separated JSON values: NDJSON/LDJSON/JSONL format)
    • modified settings window (categor

Reply all
Reply to author
Forward
0 new messages