Crate serialzero

Source
Expand description

§SerialZero

A zero-dependency, minimalist JSON parsing and serialization library for Rust.

§Features

  • Zero dependencies: No external libraries, keeping your project lean.
  • Optimized for speed: Written with performance in mind, for both parsing and serializing JSON.
  • Minimal API: Simple, clean API that’s easy to use without boilerplate.
  • Customizable: Allows customization for use cases like date formatting or naming conventions.
  • Portable: Ideal for projects with strict size limitations (embedded systems, webassembly).

Macros§

json

Structs§

Parser
Parser for converting JSON strings into JsonValue structures
SerializeOptions
Options for configuring JSON serialization

Enums§

JsonError
Error types that can occur during parsing or serialization
JsonValue
The primary JSON value type that represents any valid JSON value

Traits§

JsonValueExt
Extension trait for JsonValue

Functions§

from_bool
from_number
from_str
parse
Parse a JSON string into a JsonValue
to_string
Serialize a JsonValue to a string
to_string_pretty
Serialize a JsonValue to a pretty-printed string
to_string_with_options
Serialize a JsonValue to a string with custom options