We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89a9d71 commit b5ff62bCopy full SHA for b5ff62b
jscomp/others/js_json.ml
@@ -24,7 +24,15 @@
24
25
(** Efficient JSON encoding using JavaScript API *)
26
27
-type t
+type t =
28
+ | False [@as false]
29
+ | True [@as true]
30
+ | Null [@as null]
31
+ | String of string
32
+ | Number of float
33
+ | Object of t Js.Dict.t
34
+ | Array of t array
35
+[@@unboxed]
36
37
type _ kind =
38
| String : Js_string.t kind
jscomp/others/js_json.mli
@@ -30,7 +30,15 @@
(** ## Types *)
39
40
41
42
(** The JSON data structure *)
43
44
(** Underlying type of a JSON value *)
0 commit comments