json serialization
error
json
- Represents a json valueto_json
hashmap of map<K, V> for t<K, V>
to_json of to_json for json
to_json of to_json for @json
to_json of to_json for int
to_json of to_json for i8
to_json of to_json for i16
to_json of to_json for i32
to_json of to_json for i64
to_json of to_json for uint
to_json of to_json for u8
to_json of to_json for u16
to_json of to_json for u32
to_json of to_json for u64
to_json of to_json for float
to_json of to_json for f32
to_json of to_json for f64
to_json of to_json for ()
to_json of to_json for bool
to_json of to_json for str
to_json of to_json for @str
to_json of to_json for (A, B)
to_json of to_json for (A, B, C)
to_json of to_json for ~[A]
to_json of to_json for hashmap<str, A>
to_json of to_json for option<A>
to_str of to_str::to_str for json
to_str of to_str::to_str for error
eq
- Test if two json values are equalfrom_reader
- Deserializes a json value from an io::readerfrom_str
- Deserializes a json value from a stringto_str
- Serializes a json value into a stringto_writer
- Serializes a json value into a io::writererror
type error = {line: uint, col: uint, msg: @str,}
json
Represents a json value
num(float)
string(@str)
boolean(bool)
list(@~[json])
dict(map::hashmap<str, json>)
null
to_json
to_json
fn to_json() -> json
hashmap of map<K, V> for t<K, V>
size
fn size() -> uint
contains_key
fn contains_key(k: K) -> bool
insert
fn insert(+k: K, +v: V) -> bool
find
fn find(k: K) -> option<V>
get
fn get(k: K) -> V
[]
fn [](k: K) -> V
remove
fn remove(k: K) -> option<V>
clear
fn clear()
each
fn each(blk: fn(K, V) -> bool)
each_key
fn each_key(blk: fn(K) -> bool)
each_value
fn each_value(blk: fn(V) -> bool)
to_json of to_json for json
to_json
fn to_json() -> json
to_json of to_json for @json
to_json
fn to_json() -> json
to_json of to_json for int
to_json
fn to_json() -> json
to_json of to_json for i8
to_json
fn to_json() -> json
to_json of to_json for i16
to_json
fn to_json() -> json
to_json of to_json for i32
to_json
fn to_json() -> json
to_json of to_json for i64
to_json
fn to_json() -> json
to_json of to_json for uint
to_json
fn to_json() -> json
to_json of to_json for u8
to_json
fn to_json() -> json
to_json of to_json for u16
to_json
fn to_json() -> json
to_json of to_json for u32
to_json
fn to_json() -> json
to_json of to_json for u64
to_json
fn to_json() -> json
to_json of to_json for float
to_json
fn to_json() -> json
to_json of to_json for f32
to_json
fn to_json() -> json
to_json of to_json for f64
to_json
fn to_json() -> json
to_json of to_json for ()
to_json
fn to_json() -> json
to_json of to_json for bool
to_json
fn to_json() -> json
to_json of to_json for str
to_json
fn to_json() -> json
to_json of to_json for @str
to_json
fn to_json() -> json
to_json of to_json for (A, B)
to_json
fn to_json() -> json
to_json of to_json for (A, B, C)
to_json
fn to_json() -> json
to_json of to_json for ~[A]
to_json
fn to_json() -> json
to_json of to_json for hashmap<str, A>
to_json
fn to_json() -> json
to_json of to_json for option<A>
to_json
fn to_json() -> json
to_str of to_str::to_str for json
to_str
fn to_str() -> str
to_str of to_str::to_str for error
to_str
fn to_str() -> str
eq
fn eq(value0: json, value1: json) -> bool
Test if two json values are equal
from_reader
fn from_reader(rdr: io::reader) -> result<json, error>
Deserializes a json value from an io::reader
from_str
fn from_str(s: str) -> result<json, error>
Deserializes a json value from a string
to_str
fn to_str(j: json) -> str
Serializes a json value into a string
to_writer
fn to_writer(wr: io::writer, j: json)
Serializes a json value into a io::writer