// =============================================================================
// Copyright (c) 2026 Haixing Hu.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Structured publication of parsed JSON under the domain serialization budget.
use Serialize;
use Serializer;
use Value;
use RedactedValue;
use crateRedactionPolicy;
use crateBudgetSerialize;
/// Serializes borrowed parsed JSON without cloning, reparsing or text
/// conversion.
///
/// The budget serializer admits every emitted node and scalar before forwarding
/// it. Sensitive subtrees become opaque values through the same JSON policy as
/// text rendering.
///
/// # Errors
///
/// Returns serializer or shared resource-budget errors.
pub