Fetching contributors…
Cannot retrieve contributors at this time
70 lines (61 sloc) 1.84 KB

Supler-generated JSON

Supler generates two kinds of JSON objects:

  • the backend: form description, with field values, validation errors
  • the frontend: serialized form with field values

Both are quite easy to understand without knowing much about how Supler works. For example, the JSON form description corresponding to the form from :ref:`the live demo <example>` is:

A serialized form sent from the frontend to the backend when an action is invoked or the form refreshed is even simpler, as it only contains the values, without any meta-data on how the form should look like:

            "name":"Arctic Supply Plane",
            "name":"Princess and Horse",

Moreover, Supler's frontend & backend are independent. They only communicate by the "json protocol" defined above. You could easily implement e.g. an alternative frontend.