Skip to content

A jQuery plugin that will convert a form's input elements into a generic JSON object.

Notifications You must be signed in to change notification settings

taddeini/json-binder

Repository files navigation

JSON Binder

JSON Binder is a jQuery plugin that will convert form input elements into a generic JSON object.

Use

<form>
  <input type="text" name="firstName" value="Fred" />
  <input type="checkbox" name="isActiveMember" checked />
</form>

<script>
  var result = $("form").JSONBind();
  
  // result
  {
    "firstName": "Fred",
    "isActiveMember": true
  }
  
</script>

About

A jQuery plugin that will convert a form's input elements into a generic JSON object.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published