Module gltf_json::serialize

source ·
Expand description

Re-exports of serde_json serialization functions.

This module re-exports the generic serde serialization functions so that one can serialize data structures other than Root without being bound to a specific version of serde_json.

Functions

Serialize the given data structure as a String of JSON.
Serialize the given data structure as a pretty-printed String of JSON.
Convert a T into serde_json::Value which is an enum that can represent any valid JSON data.
Serialize the given data structure as a JSON byte vector.
Serialize the given data structure as a pretty-printed JSON byte vector.
Serialize the given data structure as JSON into the IO stream.
Serialize the given data structure as pretty-printed JSON into the IO stream.