Skip to main content

Crate jhon

Crate jhon 

Source

Modules§

jhon
A wrapper that can be used with #[serde(with = "jhon")] to serialize/deserialize fields using JHON format.

Structs§

Jhon
Wrapper type for serializing/deserializing arbitrary types with JHON format.
PrettyOptions
Options for serialize_pretty_with_options.

Enums§

JhonError
Errors returned by JHON parsing and (de)serialization.

Functions§

from_str
Deserialize a JHON string into any type that implements Deserialize.
parse
Parse a Jhon config string into a JSON Value
serialize
Serialize a JSON Value into a compact JHON string
serialize_pretty
Serialize a JSON Value into a pretty-printed JHON string with custom indentation
serialize_pretty_with_options
Pretty-print with the full PrettyOptions. See its docs for the max_inline_width mode.
to_string
Serialize any type that implements Serialize into a JHON string.
to_string_pretty
Serialize any type that implements Serialize into a pretty-printed JHON string.

Type Aliases§

Result
Convenience alias used throughout the crate.