Expand description
JSON namespace implementation for handling structured JSON configuration data.
This module provides the Json
struct which wraps a serde_json::Value
and
provides methods for working with JSON-formatted configuration data. It supports
deserialization into custom types and maintains the original JSON structure.
§Usage
The Json
struct is typically created automatically by the namespace detection
system when a namespace name contains a .json
extension, but can also be
created directly from any serde_json::Value
.
§Examples
ⓘ
use serde_json::json;
use apollo_client::namespace::json::Json;
let json_data = json!({"name": "MyApp", "version": "1.0.0"});
let json_namespace = Json::from(json_data);
Structs§
Enums§
- Error
- Comprehensive error types that can occur when working with JSON namespaces.