Module extra::json

json parsing and serialization

Structs

Decoder

A structure to decode JSON to values in rust.

Encoder

A structure for implementing serialization to JSON.

Error

If an error occurs while parsing some JSON, this is the structure which is returned

Parser
PrettyEncoder

Another encoder for JSON, but prints out human-readable JSON instead of compact data

Enums

Json

Represents a json value

Traits

ToJson

A trait for converting values to JSON

Functions

Decoder

Creates a new decoder instance for decoding the specified JSON value.

Encoder

Creates a new JSON encoder whose output will be written to the writer specified.

Parser

Decode a json value from an Iterator

PrettyEncoder

Creates a new encoder whose output will be written to the specified writer

from_reader

Decodes a json value from an @io::Reader

from_str

Decodes a json value from a string

Type Definitions

List
Object