This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 8/19/2026.

JSON

~import std/json

std/json - JSON encoding and decoding

json.kz · 8 tors

std/json - JSON encoding and decoding Minimal JSON library for building and parsing JSON. Uses Zig's std.json under the hood. Design: Start simple, extend as needed. - Object builder pattern for encoding - Key-based extraction for decoding

Phantom lifecycles

Derived from the phantom labels in the declarations below — state! issues an obligation the compiler will chase, !state discharges it, a bare state holds it without moving it. Nothing here is hand-drawn.

JsonObject 1 state building!

object.new

<building!> koru_std/json.kz:35

object.set

<building> koru_std/json.kz:53

object.finish

<!building> koru_std/json.kz:96

array.new

<building!> koru_std/json.kz:109

array.push

<building> koru_std/json.kz:127

array.finish

<!building> koru_std/json.kz:163