Module Aws.Json
This module contains a Json type (compatible with Yojson.Basic.t) and helpers.
type t
=[
|
`Assoc of (string * t) list
|
`Bool of bool
|
`Float of float
|
`Int of int
|
`List of t list
|
`Null
|
`String of string
]
Json type. This is compatible with Yojson.Basic.t
exception
Casting_error of string * t
This is thrown in the case that an unsafe cast (like to_list below) fails.
val to_list : (t -> 't) -> t -> 't list
This converts a `List (t list) to 't list, or throws a Casting_error in the case that the input is not a `List.