shithub: mc

ref: cb8b7343a04a8fd959e582b96969f43f2ea0c563
dir: /lib/json/types.myr/

View raw version
use std

pkg json =
	type elt = union
		`Null
		`Bool	bool
		`Num	flt64
		`Str	byte[:]
		`Arr	elt#[:]
		`Obj	(byte[:], elt#)[:]
	;;

	type err = union
		`Junk char
		`Badesc char
		`End
	;;
;;