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

Re: JSON-B.NET. Was: TJSON

From: Anders Rundgren <anders.rundgren.net@gmail.com>
Date: Wed, 30 Nov 2016 16:03:11 +0100
To: Andrew Bransford Brown <andrewbb@gmail.com>
Cc: Interledger Community Group <public-interledger@w3.org>
Message-ID: <cfa18426-28bb-50c5-9694-390fc98c1393@gmail.com>
On 2016-11-30 15:51, Andrew Bransford Brown wrote:
> I agree with that interface change.  I have questions of why 53?

Thanx but the interface is just my JSON Java library which (currently) have nothing directly to do with ILP.

53 stands for 53 bits of precision since that is the limit for integers in an ES6-compatible JSON implementation.
For greater precision, BigInteger is used by JSONB as well as by me.

It is ugly but works(tm).

Anders

>
> Andrew B. Brown
> (512) 947-8282
> http://KidsCourtyard.com
>
>
> On Wed, Nov 30, 2016 at 7:45 AM, Anders Rundgren <anders.rundgren.net@gmail.com <mailto:anders.rundgren.net@gmail.com>> wrote:
>
>     Pardon for reviving an old thread but I just got a link in my mail-box http://json-b.net/
>     showing Oracle's take on JSON typing which appears to be identical to mine although they
>     use a declarative approach while I have settled on a more "old-school" programmatic ditto.
>
>     However, these methods are in no way mutually exclusive.
>
>     Sort of related (and triggered by the TJSON discussion), I upgraded my JSON Java library from
>        JSONObjectWriter setLong(String name, long value)
>     to
>        JSONObjectWriter setInt53(String name, long value)
>     because that reflects what it actually does :-)
>
>     Anders
>
>
Received on Wednesday, 30 November 2016 15:09:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 30 November 2016 15:09:34 UTC