> For the complete documentation index, see [llms.txt](https://jsf.gitbook.io/jsf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jsf.gitbook.io/jsf/examples/basic-exmaple.md).

# Demo example

{% hint style="info" %}
The best way to test the examples is to use the JSF builder and copy the examples into the Import/Export tab.
{% endhint %}

Let's create a basic form that collects user name with a minimum requirement of 3 characters and return it in a JSON object.

{% tabs %}
{% tab title="JSON" %}

```javascript
{
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string", "title": "Username", "minLength": 3
      }
    }
  },
  "layout": {
    "type": "div",
    "items": [  {  "key": "name" }  ]
  }
}
```

{% endtab %}
{% endtabs %}
