kosei28/maru/json does not have a README file
type Parser[T] = (Value) -> T raise @kosei28/maru/error.InvalidInvalid
type Object
fn Object::field(self : Object, name : String) -> Value raise @kosei28/maru/error.InvalidInvalid
fn Object::optional_field(self : Object, name : String) -> Value?
type Value
fn Value::array(self : Value) -> @kosei28/maru/typed.TypedTyped[Array[Value]] raise @kosei28/maru/error.InvalidInvalid
fn Value::bool(self : Value) -> @kosei28/maru/typed.TypedTyped[Bool] raise @kosei28/maru/error.InvalidInvalid
fn Value::double(self : Value) -> @kosei28/maru/typed.TypedTyped[Double] raise @kosei28/maru/error.InvalidInvalid
fn Value::int(self : Value) -> @kosei28/maru/typed.TypedTyped[Int] raise @kosei28/maru/error.InvalidInvalid
fn Value::int64(self : Value) -> @kosei28/maru/typed.TypedTyped[Int64] raise @kosei28/maru/error.InvalidInvalid
fn Value::null(self : Value) -> Unit raise @kosei28/maru/error.InvalidInvalid
fn Value::object(self : Value) -> Object raise @kosei28/maru/error.InvalidInvalid
fn Value::raw(self : Value) -> Json
fn Value::string(self : Value) -> @kosei28/maru/typed.TypedTyped[String] raise @kosei28/maru/error.InvalidInvalid
fn[T] first_of(value : Value, parsers : Array[(Value) -> T raise @kosei28/maru/error.InvalidInvalid]) -> T raise @kosei28/maru/error.InvalidInvalid
fn from_json(json : Json) -> Value
Install
A minimal MoonBit validation library that constructs a typed value while validating, without holding a schema as a value.
Powered by MoonBit
© 2026 mooncakes.io