aws

Amazon Web Services SDK
IN THIS PACKAGE
Module Aws . Json
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.

val to_hashtbl : ( string -> 'a ) -> ( t -> 'b ) -> t -> ( 'a, 'b ) Hashtbl.t

This converts an `Assoc (string * t list) to ('a, 'b) Hashtbl.t, or throws a Casting_error in the case that the input is not an `Assoc.

val lookup : t -> string -> t option

If t is an `Assoc, this looks up the field specified. If it isn't found, or if the input is not an `Assoc, returns None.