// =============================================================================
// Copyright (c) 2026 Haixing Hu.
//
// SPDX-License-Identifier: Apache-2.0
//
// Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Tests shared JSON encoding context accounting.
use JsonEncodeLimits;
use JsonEncodeSession;
use JsonResource;
use crateencode;
/// Verifies string payloads are charged by the shared encoding context.