simplejson/jsonvalue
Types
pub type JsonValue {
JsonString(str: String)
JsonNumber(
int: Option(Int),
float: Option(Float),
original: Option(String),
)
JsonBool(bool: Bool)
JsonNull
JsonArray(List(JsonValue))
JsonObject(Dict(String, JsonValue))
}
Constructors
-
JsonString(str: String) -
JsonNumber( int: Option(Int), float: Option(Float), original: Option(String), ) -
JsonBool(bool: Bool) -
JsonNull -
JsonArray(List(JsonValue)) -
JsonObject(Dict(String, JsonValue))
pub type ParseError {
UnexpectedCharacter(char: String, rest: String, pos: Int)
Unknown
UnexpectedEnd
InvalidEscapeCharacter(char: String, rest: String, pos: Int)
InvalidCharacter(char: String, rest: String, pos: Int)
InvalidHex(hex: String, rest: String, pos: Int)
InvalidNumber(num: String, rest: String, pos: Int)
}
Constructors
-
UnexpectedCharacter(char: String, rest: String, pos: Int) -
Unknown -
UnexpectedEnd -
InvalidEscapeCharacter(char: String, rest: String, pos: Int) -
InvalidCharacter(char: String, rest: String, pos: Int) -
InvalidHex(hex: String, rest: String, pos: Int) -
InvalidNumber(num: String, rest: String, pos: Int)