bobzhang/atd/yojson does not have a README file

    Value

    pub(all) enum Value {
    Null
    Bool(Bool)
    Int(Int64)
    Float(Double)
    String(String)
    List(Array[Value])
    Assoc(Array[(String, Value)])
    } derive(Eq,
    Debug
    )

    A JSON value like Yojson's: objects are association lists, which preserve the order and the duplicates of their keys.

    Value::of_json

    fn Value::of_json(x : Json) -> Value

    Convert from MoonBit's Json.

    Value::to_json

    fn Value::to_json(self : Value) -> Json

    Convert to MoonBit's Json. Duplicate keys of objects are lost: the last value is kept.

    json_string_of_number

    fn json_string_of_number(x : Double, repr : String?) -> String

    Print a number: integral values are printed as integers, other values using their exact representation if available.

    json_string_of_string

    fn json_string_of_string(s : String) -> String

    Escape a string as a JSON string literal, like Yojson.

    pretty_json_to_string

    fn pretty_json_to_string(x : Json) -> String

    Pretty-print MoonBit's Json like Yojson.Safe.pretty_to_string.

    pretty_to_string

    fn pretty_to_string(x : Value) -> String

    Pretty-print JSON data like Yojson.Safe.pretty_to_string.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io