Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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!