Subject: [Json] Adaptive Notation for JSON

From: Anders Rundgren <[email-masked]>
Date: Sat, 19 May 2018 07:58:35 +0200

It turned out that the Oracle/Java JSON API actually is I-JSON compatible by default through a method which I have coined Adaptive Notation:

{
   "BigDecimal.large": "1E+999",
   "BigDecimal.small": 1,
   "BigInteger.large": "240777489003222785532321",
   "BigInteger.small": 1,
   "Long.large": "9223372036854775807",
   "Long.small": 1
}

Personally I prefer schemes where you either use JSON Number or JSON String, rather than mixing these depending on the actual value.

However, the most important is finding a common solution.

WDYT?

Anders