package query-json

  1. Overview
  2. Docs
Faster, simpler and more portable implementation of `jq` in OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

query-json-0.5.52.tbz
sha256=045832458e20ae90f7bb14536e27aa5e4c5528968ac48ac390409a66fe6b438e
sha512=9d4af4a9c8f5b2f4fb84830f0651ba4400f32e97bdec1e61378780906077af80d5679f9ccf545a072c1ffbe70a18ca4b3dd57b79d02384384068ee695d67e4ac

doc/query-json.core/Compiler/index.html

Module CompilerSource

Sourceval append_article : string -> string
Sourceval make_error_wrong_operation : colorize:bool -> string -> string -> Json.t -> string
Sourceval make_empty_list_error : colorize:bool -> string -> string
Sourceval get_field_name : [< `Assoc of 'a | `Bool of 'b | `Float of 'c | `Int of 'd | `Intlit of 'e | `List of 'f | `Null | `String of 'g ] -> string
Sourceval make_error : colorize:bool -> string -> Json.t -> string
Sourcemodule Output : sig ... end
Sourceval (let*) : ('a list, string) result -> ('a -> ('b list, string) result) -> ('b list, string) result
Sourcemodule Operators : sig ... end
Sourceval keys : colorize:bool -> Json.t -> ([> `List of [> `String of string ] list ] list, string) result
Sourceval has : colorize:bool -> Json.t -> Ast.literal -> ([> `Bool of bool ] list, string) result
Sourceval in_ : colorize:bool -> Json.t -> Ast.expression -> ([> `Bool of bool ] list, string) result
Sourceval range : ?step:int -> int -> int option -> int list
Sourceval split : Ast.expression -> [> `String of string ] -> ([> `List of [> `String of string ] list ] list, string) result
Sourceval join : Ast.expression -> [> `List of [> `String of string ] list ] -> ([> `String of string ] list, string) result
Sourceval length : colorize:bool -> Json.t -> ([> `Int of int ] list, string) result
Sourceval emit_warning : verbose:bool -> string -> unit
Sourceval type_of : Json.t -> ([> `String of string ] list, 'a) result
Sourceval floor : colorize:bool -> Json.t -> ([> `Int of int ] list, string) result
Sourceval sqrt : colorize:bool -> Json.t -> ([> `Float of float ] list, string) result
Sourceval to_number : colorize:bool -> verbose:bool -> deprecated:bool -> Json.t -> (Json.t list, string) result
Sourceval to_string : verbose:bool -> deprecated:bool -> Json.t -> ([> `String of string ] list, 'a) result
Sourceval min : colorize:bool -> Json.t -> (Json.t list, string) result
Sourceval max : colorize:bool -> Json.t -> (Json.t list, string) result
Sourceval flatten : colorize:bool -> int option -> Json.t -> ([> `List of Json.t list ] list, string) result
Sourceval sort : colorize:bool -> Json.t -> ([> `List of Json.t list ] list, string) result
Sourceval unique : colorize:bool -> Json.t -> ([> `List of Json.t list ] list, string) result
Sourceval any : colorize:bool -> Json.t -> ([> `Bool of bool ] list, string) result
Sourceval all : colorize:bool -> Json.t -> ([> `Bool of bool ] list, string) result
Sourceval starts_with : colorize:bool -> verbose:bool -> is_deprecated:bool -> 'a -> Json.t -> ('a -> Json.t -> ([> `String of string ] list, string) result) -> ([> `Bool of bool ] list, string) result
Sourceval ends_with : colorize:bool -> verbose:bool -> is_deprecated:bool -> 'a -> Json.t -> ('a -> Json.t -> ([> `String of string ] list, string) result) -> ([> `Bool of bool ] list, string) result
Sourceval to_entries : colorize:bool -> Json.t -> ([> `List of [> `Assoc of (string * Json.t) list ] list ] list, string) result
Sourceval from_entries : colorize:bool -> Json.t -> ([> `Assoc of (string * Json.t) list ] list, string) result
Sourceval contains : colorize:bool -> 'a -> Json.t -> ('a -> Json.t -> ([> `List of Json.t list | `String of string ] list, string) result) -> ([> `Bool of bool ] list, string) result
Sourceval explode : colorize:bool -> Json.t -> ([> `List of [> `Int of int ] list ] list, string) result
Sourceval implode : colorize:bool -> Json.t -> ([> `String of String.t ] list, string) result
Sourceval index_of : colorize:bool -> 'a -> Json.t -> ('a -> Json.t -> ([> `String of string ] list, string) result) -> ([> `Int of int | `Null ] list, string) result
Sourceval rindex_of : colorize:bool -> 'a -> Json.t -> ('a -> Json.t -> ([> `String of string ] list, string) result) -> ([> `Int of int | `Null ] list, string) result
Sourceval group_by : colorize:bool -> verbose:'a -> 'b -> Json.t -> ('b -> Json.t -> (Json.json list, 'c) result) -> ([> `List of [> `List of Json.t list ] list ] list, string) result
Sourceval while_loop : colorize:'a -> verbose:'b -> 'c -> 'c -> ([> `Bool of bool ] as 'd) -> ('c -> 'd -> ('e list, 'f) result) -> ('d list, 'g) result
Sourceval until_loop : colorize:'a -> verbose:'b -> 'c -> 'c -> ([> `Bool of bool ] as 'd) -> ('c -> 'd -> ('e list, 'f) result) -> ('d list, 'g) result
Sourceval recurse_simple : Json.t -> (Ast.expression -> Json.t -> (Json.t list, 'a) result) -> (Json.t list, 'b) result
Sourceval recurse_with_cond : colorize:'a -> verbose:'b -> 'c -> 'c -> ([> `Bool of bool ] as 'd) -> ('c -> 'd -> ('e list, 'f) result) -> ('d list, 'g) result
Sourceval walk_tree : colorize:'a -> verbose:'b -> 'c -> ([> `Assoc of ('e * 'd) list | `List of 'd list ] as 'd) -> ('c -> 'd -> ('d list, 'f) result) -> ('d list, 'g) result
Sourceval filter : colorize:bool -> (Json.t -> bool) -> Json.t -> ([> `List of Json.t list ], string) result
Sourceval head : colorize:bool -> Json.t -> (Yojson__Safe.t list, string) result
Sourceval tail : colorize:bool -> Json.t -> (Yojson__Safe.t list, string) result
Sourceval make_error_missing_member : colorize:bool -> string -> string -> Json.t -> string
Sourceval member : colorize:bool -> string -> Json.t -> (Yojson__Safe.t list, string) result
Sourceval iterator : colorize:bool -> Json.t -> (Json.t list, string) result
Sourceval index : colorize:bool -> int list -> Json.t -> (Json.t list, string) result
Sourceval slice : colorize:bool -> int option -> int option -> Json.t -> ([> `List of Json.t list | `String of string ] list, string) result
Sourceval compile : colorize:bool -> verbose:bool -> Ast.expression -> Json.t -> (Json.t list, string) result
Sourceval operation : colorize:bool -> verbose:bool -> Ast.expression -> Ast.expression -> (Json.t -> Json.t -> (Json.t list, string) result) -> Json.t -> (Json.t list, string) result
Sourceval map : colorize:bool -> verbose:bool -> Ast.expression -> Json.t -> (Json.t list, string) result
Sourceval sort_by : colorize:bool -> verbose:bool -> Ast.expression -> Json.t -> (Json.t list, string) result
Sourceval min_by : colorize:bool -> verbose:bool -> Ast.expression -> Json.t -> (Json.t list, string) result
Sourceval max_by : colorize:bool -> verbose:bool -> Ast.expression -> Json.t -> (Json.t list, string) result
Sourceval unique_by : colorize:bool -> verbose:bool -> Ast.expression -> Json.t -> (Json.t list, string) result
Sourceval objects : colorize:bool -> verbose:bool -> (Ast.expression * Ast.expression option) list -> Json.t -> (Json.t list, string) result
Sourceval builtin_functions : colorize:bool -> Ast.builtin -> Json.t -> (Json.t list, string) result