Module serde_json_v8::ser[][src]

Serialize a Rust data structure into JSON data.

Modules

Serializer

A structure for serializing Rust values into JSON.

Structs

CompactV8Formatter

This structure compacts a JSON value with no extra whitespace.

PrettyV8Formatter

This structure pretty prints a JSON value to make it human readable.

Traits

Formatter

This trait abstracts away serializing the JSON control characters, which allows the user to optionally pretty print the JSON output.

Functions

to_string

Serialize the given data structure as a String of JSON.

to_string_pretty

Serialize the given data structure as a pretty-printed String of JSON.

to_vec

Serialize the given data structure as a JSON byte vector.

to_vec_pretty

Serialize the given data structure as a pretty-printed JSON byte vector.

to_writer

Serialize the given data structure as JSON into the IO stream.

to_writer_pretty

Serialize the given data structure as pretty-printed JSON into the IO stream.