W3C home > Mailing lists > Public > public-interledger@w3.org > November 2016

Re: What's a Number? Was: TJSON

From: Anders Rundgren <anders.rundgren.net@gmail.com>
Date: Sat, 5 Nov 2016 08:40:43 +0100
To: Shane McCarron <shane@spec-ops.io>
Cc: David Ezell <David_E3@verifone.com>, Tony Arcieri <bascule@gmail.com>, Interledger Community Group <public-interledger@w3.org>
Message-ID: <0f828924-4b90-d7e6-8c48-08ea0c16432f@gmail.com>
On 2016-11-04 18:39, Shane McCarron wrote:
> I couldn't agree more strongly with what David said.  The XSD work is
 > seminal and more than sufficient for anything we might need as far as I know.
> We have done some really interesting things with JSON Schema and JSON-LD.
 > In both cases we just rely on XSD types for the underlying explicit meaning.

Yes, there seems to be many ways mapping unsupported/missing data types as an alternative to explicitly tagging data.

- JSON Schema

- The "old-school" programmatic way: writer.setBigDecimal("amount", bigdecimalvalue)

- Annotations:
    Int64String int64 `json:",string"

Providing an explicit mapping table can also be useful:

Received on Saturday, 5 November 2016 07:41:19 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 5 November 2016 07:41:20 UTC