Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://rawgit.com/cezary/JSONForms/master/dist/json-forms.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <h2>form</h2>
  <form id='formEl'>
    <input type="radio" name="foo" value="1" checked="checked" />
    <input type="radio" name="foo" value="0" />
    <input name="bar" value="xxx" />
    <select name="this">
      <option value="hi" selected="selected">Hi</option>
      <option value="ho">Ho</option>
    </select>
  </form>
  <p>
    <code>we call JSONForms.encode(formEl)</code>
  </p>
  <h2>result</h2>
  <pre id='resultEl'></pre>
</body>
</html>
 
resultEl.innerHTML = JSON.stringify(JSONForms.encode(formEl),null, 2);
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers