{
  "comment": "Numbers read exactly: every number in an input is an exact decimal, never a binary64 double. A parser that rounds through a double gets most of these wrong.",
  "encode": [
    {
      "name": "integer 2^53 + 1",
      "input": "9007199254740993",
      "canonical": "9007199254740993"
    },
    {
      "name": "negative integer -(2^53 + 1)",
      "input": "-9007199254740993",
      "canonical": "-9007199254740993"
    },
    {
      "name": "largest bigint",
      "input": "9223372036854775807",
      "canonical": "9223372036854775807"
    },
    {
      "name": "integer 2^64 + 1",
      "input": "18446744073709551617",
      "canonical": "18446744073709551617"
    },
    {
      "name": "integers beyond 2^53 inside an object",
      "input": "{\"n\": [18014398509481985, -18014398509481985], \"id\": 9007199254740993}",
      "canonical": "{\"id\":9007199254740993,\"n\":[18014398509481985,-18014398509481985]}"
    },
    {
      "name": "long decimal",
      "input": "0.1234567890123456789012345678901234567890",
      "canonical": "0.123456789012345678901234567890123456789"
    },
    {
      "name": "long decimal with an integer part",
      "input": "123456789012345678901234567890.123456789",
      "canonical": "123456789012345678901234567890.123456789"
    },
    {
      "name": "long decimal of 50 digits",
      "input": "3.14159265358979323846264338327950288419716939937510",
      "canonical": "3.1415926535897932384626433832795028841971693993751"
    },
    {
      "name": "trailing fraction zeros",
      "input": "1.50000000000000000000",
      "canonical": "1.5"
    },
    {
      "name": "integer written with a fraction",
      "input": "12345678901234567890.0",
      "canonical": "12345678901234567890"
    },
    {
      "name": "decimal above the binary64 range",
      "input": "1e400",
      "canonical": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    },
    {
      "name": "decimal below the binary64 range",
      "input": "-1e-400",
      "canonical": "-0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001"
    },
    {
      "name": "negative zero integer",
      "input": "-0",
      "canonical": "0"
    },
    {
      "name": "negative zero decimal",
      "input": "-0.0",
      "canonical": "0"
    },
    {
      "name": "negative zero with an exponent",
      "input": "-0e10",
      "canonical": "0"
    },
    {
      "name": "zero with a negative exponent",
      "input": "0.000e-10",
      "canonical": "0"
    },
    {
      "name": "small negative decimal",
      "input": "-1e-20",
      "canonical": "-0.00000000000000000001"
    },
    {
      "name": "1e16",
      "input": "1e16",
      "canonical": "10000000000000000"
    },
    {
      "name": "1E+16 with an upper-case exponent",
      "input": "1E+16",
      "canonical": "10000000000000000"
    },
    {
      "name": "1.5e16",
      "input": "1.5e16",
      "canonical": "15000000000000000"
    },
    {
      "name": "1e21",
      "input": "1e21",
      "canonical": "1000000000000000000000"
    },
    {
      "name": "shortest text of the double nearest 2^64",
      "input": "1.8446744073709552e19",
      "canonical": "18446744073709552000"
    },
    {
      "name": "1e-7",
      "input": "1e-7",
      "canonical": "0.0000001"
    },
    {
      "name": "exponent on a fraction",
      "input": "123.4500e3",
      "canonical": "123450"
    },
    {
      "name": "exponent that makes an integer",
      "input": "100e-2",
      "canonical": "1"
    },
    {
      "name": "negative exponent on a fraction",
      "input": "1.25e-3",
      "canonical": "0.00125"
    }
  ]
}
