xf:submission
or by an xf:instance
with a src
or resource
attribute receives content with the application/json
mediatype, Orbeon Forms parses the received JSON and converts it to an XML representation friendly to XPath expressions.application/json
mediatype, mediatypes of the form a/b+json
are recognized.instance()/given
and instance()/family
.type="number"
attribute:type="boolean"
attribute:"_
element name and the type="array"
attribute:instance()/cities/_[2]
.null
adds a type="null"
attribute:"my-service
, provide the URL to your JSON, and save.show-result
, run it on form load after the controls are ready, have it call my-service
.saxon:serialize(., 'xml')
.serialization="application/json"
on xf:submission
, the source XML is converted to JSON. The source XML must be compatible with the XForms XML representation of JSON shown above to be meaningful.