orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
514 stars 220 forks source link

Persistence API to support JSON for form data #3354

Open ebruchez opened 6 years ago

ebruchez commented 6 years ago

At least for GET, maybe for PUT.

See also #2109.

+1 from evaluator

ebruchez commented 1 year ago

+1 from customer today

ebruchez commented 1 year ago

Form definitions, on the other hand, do not follow the same format as regular form data. In addition, it doesn't make sense to convert them to JSON. Options:

Note that with some databases, the JSON must be stored in a separate "table" or collection.

From the CRUD API point of view, data could be PUT with application/json, and form definitions PUT with application/xml.

Q: Should the persistence proxy do the XML <-> JSON conversion?