File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed
Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 11type t = Js.Json .t
22type json = t
33
4+ module Classify = Classify
5+
46let to_json t = t
57let of_json t = t
68
@@ -414,5 +416,3 @@ let parseOrRaise s =
414416 raise @@ ParseError message
415417
416418external stringify : Js.Json .t -> string = " JSON.stringify"
417-
418- let classify = Classify. classify
Original file line number Diff line number Diff line change @@ -411,13 +411,15 @@ val parse : string -> json option [@@deprecated "Use `of_string` instead"]
411411val parseOrRaise : string -> json [@@ deprecated "Use `of_string` instead" ]
412412val stringify : json -> string [@@ deprecated "Use `to_string` instead" ]
413413
414- val classify :
415- json ->
416- [ `Assoc of (string * json ) list
417- | `Bool of bool
418- | `Float of float
419- | `Int of int
420- | `List of json list
421- | `Null
422- | `String of string ]
423- (* * Classify a JSON value into a variant type. *)
414+ module Classify : sig
415+ val classify :
416+ json ->
417+ [ `Assoc of (string * json ) list
418+ | `Bool of bool
419+ | `Float of float
420+ | `Int of int
421+ | `List of json list
422+ | `Null
423+ | `String of string ]
424+ (* * Classify a JSON value into a variant type. *)
425+ end
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ type t = Yojson.Basic.t
66type json = t
77(* * Defined for convenience. *)
88
9+ module Classify = Classify
10+
911let to_string t = Yojson.Basic. to_string t
1012
1113include Errors
You can’t perform that action at this time.
0 commit comments