Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnsnook/jsonformer
A jQuery plugin that turn a json object into a bootstrap form, lets you edit and get the new object or just a difference object.
https://github.com/johnsnook/jsonformer
bootstrap javascript jquery json recursion
Last synced: about 2 months ago
JSON representation
A jQuery plugin that turn a json object into a bootstrap form, lets you edit and get the new object or just a difference object.
- Host: GitHub
- URL: https://github.com/johnsnook/jsonformer
- Owner: johnsnook
- License: lgpl-3.0
- Created: 2017-12-28T15:50:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-28T16:59:15.000Z (about 7 years ago)
- Last Synced: 2023-09-25T01:46:49.231Z (over 1 year ago)
- Topics: bootstrap, javascript, jquery, json, recursion
- Language: JavaScript
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## jsonFormer
This jquery plugin or widget or whatever they're called now, takes a json object and builds a form inside the element you specify.
You can then make changes to the data in the form and request
$('#form-container').jsonFormer({
title: "Just point me at a div and pass me an object",
jsonObject: {"name":"john", "charisma": 100, "handsome":true};
});To get the modified object use
var newObj = $('#form-container').jsonFormer('formData');if you just want the differences use
var diffObj = $('#form-container').jsonFormer('getDiff');### Support or Contact
Having trouble with my plugin? Email me at [email protected] and I might just check my email that very same month!