Module json

Source
Expand description

JSON parsing utilities with performance optimizations

This module provides a unified interface for JSON parsing using simd-json for maximum performance in HFT applications.

Macros§

json
Construct a simd_json::Value from a JSON literal.

Enums§

BorrowedValue
Borrowed JSON-DOM Value, consider using the ValueTrait to access its content
Value
Owned JSON-DOM Value, consider using the ValueTrait to access it’s content. This is slower then the BorrowedValue as a tradeoff for getting rid of lifetimes.

Functions§

from_value
Deserialize from a JSON Value using simd-json
parse
Parse JSON from a string slice using simd-json
parse_bytes
Parse JSON from borrowed bytes with temporary allocation
parse_fast
High-performance JSON parsing using simd-json
parse_fast_owned
High-performance JSON parsing from owned SmartString
parse_fast_slice
High-performance JSON parsing from mutable byte slice
parse_fast_vec
High-performance JSON parsing from owned Vec
parse_slice
Parse JSON from bytes using simd-json
parse_to_borrowed_value
Zero-copy JSON parsing to borrowed value
parse_with_buffer
High-performance JSON parsing with pooled buffers
parse_zerocopy
Zero-copy JSON parsing using borrowed data
to_smartstring
Serialize to JSON SmartString using simd-json

Type Aliases§

Map
A type alias for BTreeMap for compatibility with simd-json.