package hack_parallel
Install
dune-project
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 -> stringval json_to_multiline : json -> stringval json_to_output : out_channel -> json -> unitval json_of_string : ?strict:bool -> string -> jsonval json_of_file : ?strict:bool -> string -> jsonval get_string_exn : json -> stringval get_number_exn : json -> stringval get_number_int_exn : json -> intval get_bool_exn : json -> boolval opt_string_to_json : string option -> jsonval opt_int_to_json : int option -> jsonval int_ : int -> jsonval string_ : string -> jsonTypes 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