No matching definitions.

json/decode

src/json/decode.tur
defn

json-parse-doc

(json-parse-doc [s : cstr])

parse a JSON string into a yyjson document handle.

sNUL-terminated JSON source

int handle wrapping `yyjson_doc *`, or 0 on parse failure.

(let [d (unsafe (json-parse-doc "{\"x\":1}"))]
    (unsafe (json-doc-free d)))
defn

json-doc-free

(json-doc-free [doc : int])

release a yyjson document and its arena.

defn

json-doc-root

(json-doc-root [doc : int])

return the root value handle of the document, or 0

defn

json-obj-get

(json-obj-get [doc : int val : int key : cstr])

look up `key` inside the object at `val`. Returns the