Smart JSON Editor



It is very smart JSON comparator/JSON Diff, it understands the order of json node and highlights the diff in a very cool tree view. What are other features of this editor? It has many other features like. JSON Viewer to beatify the json document. Add jsonnode in the tree view. This json editor works offline.

  1. Smart JSON Editor documents uses project structure and extends text only.json files. Use Folders, Notes, Modes, API Group & API Endpoints to structure your work. Documents are optimized and minimized upon saving allowing huge amount of data being used together with iCloud.
  2. JSON Editor Online - view, edit and format JSON online. Drag 'n drop your JSON document here. Open recent file.


SmartBox - all JSON Editor Options (pro)



The Editor allows you to define Input Fields with JSON. For example, you can allow an end-user to choose a color or pick a file. This choice, in turn, gets written into a CSS class automatically, which defines the Smartbox.


The basic syntax is as follows:


In JSON format, start with the brackets, then make an entry for every class you use in the HTML definition (here: “bgbox”), inside of it, an entry for every CSS property, with it’s editor definition:


  • Class
    • Property (CSS-Property, e.g. background-color)
      • Config for Editor


You can create as many classes and properties as you want.


Json


{

'colorsection': { /* CSS Class */

'background-color': { /* CSS Property */

'inputType': 'colorfield', /* Editor Input Type: Color Picker */

'allowBlank': true /* Value can be left blank */

/* further Editor settings */

},

'background-image': { /* CSS Property */

'inputType': 'filefield' /* Editor Input Type: File Picker */

}

}

}



inputType

This defines the input type the end user can interact with. Available types are:


App

text: simple text field

numberfield: allows for numeric input

colorfield: hex values & colorpicker

filefield: incms file chooser (for bg images, favicons..)

select: select-options field

checkbox: checkbox


Depending on the choosen inputType, there are more options available:

Smart JSON Editor


All Input Types

Smart Json Editor Free

allowBlank (true,false): if field can be left blank by the user

value: default value


Only numberfield

minValue, maxValue

outputType: if not specified, all numberfield values will be taken as “px”. if specified, the specified outputType will be appended, so “%”, or “em”, or even “” are useful values here


Only colorfield

showAlpha (true, false): shows a opacity regulator for color

Smart Json Editor Windows 10


Only select

options: the selectable options, as key-value object


Example - instead of allowing the end user to choose any color, you could create a select field from which he can choose 3 color options:


{

'colorsection': { /* CSS Class */

'background-color': { /* CSS Property */

'inputType': 'select', /* Editor Input Type: Select Dropdown */

'options': {

'#ff0000': 'Red',

'#00ff00': 'Green',

'#0000ff': 'Blue'

}

}

}

}


label

Custom field label can be set with this. Default css attributes have labels already, but this might still be handy to use own labels.


html

If set (to true), the value will not be added to CSS, but it will look for a placeholder in the HTML markup in curly braces. So when the property name is “cls”, you can use {CLS} as placeholder in the HTML markup.


Fixed Values

Smart Json Editor Software

Instead of having an object config for the editor, you can also add a value directly, which will then not be editable but will be added to the css directly, like: “border”: “1px solid black”.


Smart

It is recommended to paste these fixed values directly into the CSS area and not into the editor, as it's a lot more clearly.


Special Values

There are a few reserved properties with special meanings:

  • _label (string): gives the Fieldset a custom label




If you want to make a SmartBox editable for end-users, without them having to mess about with CSS Code, you can do this by defining a SmartBox 'Options Editor'.


Important: the SmartBox Editor can only be set as long as the 'Expert mode' for SmartBoxes is still active!



Let's take a slim example for a SmartBox where you can simply choose the background-color:


1. Create a new SmartBox


Name: Colorselection


HTML: <div>%CONTENT%</div>


2. In the Editor, we define that there's a CSS class named 'colorsection'. This has a property named 'background-color', which we want to make 'changeable' with a color picker:


{

'colorsection': {

'background-color': {

'inputType': 'colorfield'

}

}

}


3. Save and close the new SmartBox


4. When you re-open the SmartBox, you can see that the Background Color is now editable with a color picker:



5. If you remove the 'Expert mode' SmartBox in 'Settings / General Settings', you will no longer see the JSON-Editor. You will only see the user friendly editor fields you've defined.


6. If the CSS class (in this case) 'colorsection' requires further CSS, you can add an according CSS class definition in the CSS field of the SmartBox.




SmartFlexi


HTML:





CSS:




Editor:



Standard SmartBox with Color Mask

Smart Json Editor Download



HTML:



CSS:

Smart Json Editor Chrome



Smart Json Editor Pro


Editor: