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

Modified implementation of JSON conversions

From: Erik Bruchez <erik@bruchez.org>
Date: Mon, 30 Nov 2015 10:12:20 -0800
Message-ID: <CAAc0PEUW0uZuHJ3F8+mTKyW13X_=dGgttDLcuWYho+Wp8sDH5Q@mail.gmail.com>
To: "public-xformsusers@w3.org" <public-xformsusers@w3.org>, Forms WG <public-forms@w3.org>
All,

Following our last call, I implemented the new conversion scheme:

JSON to XML:

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

XML to JSON:

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

Tests (including all the examples in the spec):

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

A related good news is that the resulting code is much simpler and
regular, almost trivial in fact.

-Erik
Received on Monday, 30 November 2015 18:13:08 UTC

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