package jsonaf

  1. Overview
  2. Docs

The expert type and functions abstract over the type of `Number, so one could build a parser that worked specifically for, say, float ts or Bigdecimal.t ts instead of using string as an intermediate type.

type 'number t = [
  1. | `Null
  2. | `False
  3. | `True
  4. | `String of string
  5. | `Number of 'number
  6. | `Object of (string * 'number t) list
  7. | `Array of 'number t list
]
module Parser : sig ... end
module Serializer : sig ... end