A jQuery library for editing JSON data.
Initializes the JSON editor on selected elements.
- Object
opt_options
: An object containing the following fields: data
(Object): The input JSON data (default:{}
).schema
(Object): The JSON data schema. The provided object will be merged with default schema.autoInit
(Boolean): Iftrue
, the forms will be added by default (default:true
).
- Object The JSON editor object containing:
labels
(Object): An object with UI elements used for labels.groups
(Object): An object with UI elements used for groups.inputs
(Object): An object with UI elements used for inputs.container
(jQuery): A jQuery object being the container of the JSON editor.createGroup
(Function): Creates a form group.
Creates a form group and returns the jQuery object.
- Object
field
: The field object.
- jQuery The jQuery object form.
Adds delete button control.
- String
path
: The field path.
Adds new elements in arrays.
- String|jQuery
path
: The path to the field or the jQuery object. - Object
data
: Data to add.
Deletes elements from arrays.
- jQuery
path
: The element to be deleted.
Returns the value of field.
- String
fieldPath
: The path to the value.
- Anything The value taken from data.
Creates the form from JSON data.
Collects data from form inputs and return the data object.
- Object The object containing data taken from forms.
- File an issue in the repository, using the bug tracker, describing the contribution you'd like to make. This will help us to get you started on the right foot.
- Fork the project in your account and create a new branch:
your-great-feature
. - Commit your changes in that branch. Please see the developer guidelines in CONTRIBUTING.md.
- Open a pull request, and reference the initial issue in the pull request message.
See the LICENSE file.