package hack_parallel
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=4ebcdd0c0b23735228d13bbf401799174771a747a5aeb4f35b64dcfc68079e29
md5=26aff6c969020c1d2f588c574dc7d08a
doc/hack_parallel.hh_json/Hh_json/index.html
Module Hh_json
* Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the "hack" directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. *
* Hh_json parsing and pretty printing library.
val json_to_string : ?pretty:bool -> json -> string
val json_to_multiline : json -> string
val json_to_output : out_channel -> json -> unit
val json_of_string : ?strict:bool -> string -> json
val json_of_file : ?strict:bool -> string -> json
val get_string_exn : json -> string
val get_number_exn : json -> string
val get_number_int_exn : json -> int
val get_bool_exn : json -> bool
val opt_string_to_json : string option -> json
val opt_int_to_json : int option -> json
val int_ : int -> json
val string_ : string -> json
Types and functions for monadic API for traversing a JSON object.
module type Access = sig ... end
* This module gives monadic recursive access to values within objects by key. * It uses the Result.t to manage control flow in the monad when an error is * encountered. It also tracks the backtrace of the keys accessed to give * detailed error messages. * * Usage: * To access the boolean value "qux" from the following json: * "foo": { "bar" : { "baz" : { "qux" : true