How adomorn/structuredjson works
StructuredJson is a .NET library for editing nested JSON objects through escaped property and array-index paths. A caller creates an instance from JSON or starts empty, then uses path-based operations to set, read, query, remove, and enumerate values; results can be serialized back to JSON. The core class coordinates path parsing, an in-memory value tree, and configurable conversion and structural limits. The map reflects the README and sampled runtime source; unsampled implementation details are omitted.
Main entry points: StructuredJson.cs StructuredJson API · StructuredJsonOptions.cs Options and limits · ValueTree.cs Value tree · NumberHandlingPolicy.cs Number handling
Components 9
Library runtime
- StructuredJson API
StructuredJson/StructuredJson.cs - Options and limits
StructuredJson/StructuredJsonOptions.cs - Path parser
StructuredJson/PathParser.cs - Value tree
StructuredJson/ValueTree.cs - Number handling
StructuredJson/NumberHandlingPolicy.cs - Finite converters
StructuredJson/FiniteNumberConverters.cs
Other components
- C# caller
- JSON input
- JSON output
Connections 9
- C# caller → StructuredJson API: calls operations
- JSON input → StructuredJson API: constructs from
- StructuredJson API → Options and limits: snapshots settings
- StructuredJson API → Path parser: parses paths
- StructuredJson API → Value tree: imports, exports
- StructuredJson API → JSON output: serializes tree
- Value tree → Path parser: escapes keys
- Options and limits → Number handling: configures converters
- Number handling → Finite converters: registers converters