W3C home > Mailing lists > Public > public-xformsusers@w3.org > November 2015

Implementation of JSON support

From: Erik Bruchez <erik@bruchez.org>
Date: Fri, 20 Nov 2015 09:43:04 -0800
Message-ID: <CAAc0PEUXm-QYPP_v3qFTZvSddUHv9M7OWoMBG-Dn9XZGgHk0Bg@mail.gmail.com>
To: "public-xformsusers@w3.org" <public-xformsusers@w3.org>, Forms WG <public-forms@w3.org>
All,

In case anybody is interested, I have implemented the JSON/XML
conversion rules as per XForms 2.0 (including corrections and changes
I raised for discussion in separate emails).

Here is the source:

    https://github.com/orbeon/orbeon-forms/blob/master/src/main/scala/org/orbeon/oxf/json/Converter.scala

And here are unit tests, which cover the examples in the spec and a few more:

    https://github.com/orbeon/orbeon-forms/blob/master/src/test/scala/org/orbeon/oxf/json/ConverterTest.scala

-Erik
Received on Friday, 20 November 2015 17:43:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:45 UTC