blob: d89f293412be7b280c1c5e4bb2d34483ed4e5767 [file]
// Copyright 2026 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//! Zero-allocation, pure-integer `#![no_std]` JSON / JSON5-subset streaming
//! parser and RFC 8259 string encoder (`//sdk/vx/vx_json`).
//!
//! Unifies JSON parsing and encoding across Fuchsia components (`role_manager`,
//! `hwinfo`, `regulatory_region`) with `#![forbid(unsafe_code)]`, zero
//! floating-point instructions, zero heap allocation, and bounded nesting depth
//! (`MAX_JSON_DEPTH = 16`).
#![no_std]
#![forbid(unsafe_code)]
mod cursor;
mod encode;
mod numbers;
mod object;
mod types;
pub use encode::write_escaped_json_string_into;
pub use object::{extract_top_level_string, is_valid_object};
pub use types::{JsonCursor, JsonDialect, JsonError, MAX_JSON_DEPTH, NumberSpan};