{"id":22979683,"url":"https://github.com/verticalsoftware/vertical-jsonwriter-core","last_synced_at":"2025-08-24T01:19:21.092Z","repository":{"id":154004809,"uuid":"631382021","full_name":"verticalsoftware/vertical-jsonwriter-core","owner":"verticalsoftware","description":"Provides an abstraction over `System.Text.Json.Utf8JsonReader` that handles the structural state of JSON document parsing.","archived":false,"fork":false,"pushed_at":"2023-04-22T21:31:21.000Z","size":1165,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-01T01:39:24.672Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/verticalsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-22T21:06:41.000Z","updated_at":"2023-04-22T21:08:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"7584d484-a2a3-4812-98cf-da04a6cb2cfc","html_url":"https://github.com/verticalsoftware/vertical-jsonwriter-core","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/verticalsoftware/vertical-jsonwriter-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verticalsoftware%2Fvertical-jsonwriter-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verticalsoftware%2Fvertical-jsonwriter-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verticalsoftware%2Fvertical-jsonwriter-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verticalsoftware%2Fvertical-jsonwriter-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/verticalsoftware","download_url":"https://codeload.github.com/verticalsoftware/vertical-jsonwriter-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verticalsoftware%2Fvertical-jsonwriter-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271778237,"owners_count":24819265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T01:33:21.292Z","updated_at":"2025-08-24T01:19:21.052Z","avatar_url":"https://github.com/verticalsoftware.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vertical-jsonwriter-core\n\nProvides an abstraction over `System.Text.Json.Utf8JsonReader` that handles the structural state of JSON document parsing.\n\n## Overview\n\nSimply put, the `JsonStructureReader` class accepts a `Utf8JsonReader` structure, and forwards node information to a visitor implementation. The node information contains the current depth, parent type, applicable values, property names, etc.\n\n## Quick Start\n\nAdd a package reference to your `.csproj` file:\n\n```\n$ dotnet add package vertical-jsonwriter-core \n```\n\n## Usage\n\nDefine an implementation of `IJsonStructureVisitor`:\n\n```csharp\npublic class MyJsonStructureVisitor : IJsonStructureVisitor\n{\n    // Implement methods...\n\n    void VisitObjectStart(in JsonVisitingState state) { /* Implementation */ }    \n    void VisitObjectEnd(in JsonVisitingState state, int childCount) { /* Implementation */ }    \n    void VisitArrayStart(in JsonVisitingState state) { /* Implementation */ }    \n    void VisitArrayEnd(in JsonVisitingState state, int childCount) { /* Implementation */ }\n    void VisitPropertyName(in JsonVisitingState state, string name) { /* Implementation */ }\n    void VisitStringValue(in JsonVisitingState state, string value) { /* Implementation */ }\n    void VisitInt32Value(in JsonVisitingState state, int value) { /* Implementation */ }\n    void VisitInt64Value(in JsonVisitingState state, long value) { /* Implementation */ }\n    void VisitDoubleValue(in JsonVisitingState state, double value) { /* Implementation */ }\n    void VisitDecimalValue(in JsonVisitingState state, decimal value) { /* Implementation */ }\n    void VisitBooleanValue(in JsonVisitingState state, bool value) { /* Implementation */ }\n    void VisitNull(in JsonVisitingState state) { /* Implementation */ }    \n}\n```\n\nThe `JsonVisitingState` structure contains information regarding the location of the reader that may be of interest:\n\n|Property|Description|\n|---|---|\n|`Depth`|The current depth level of the reader. Any time the reader descends into an object or array, the depth is incremented.|\n|`Index`|The ordinal index of the node within its parent object or array. This property is zero-based.|\n|`JsonPlacement`|One of `JsonPlacement` values that describe the location of the current node.|\n\nThe `JsonPlacement` enum describes the placement of the current node, relative to its parent:\n\n|Value|Description|\n|---|---|\n|`RootDocument`|The node is a child of the top-most array or object.|\n|`Object`|The node is a child of a JSON object.|\n|`Array`|The node is a child of a JSON array.|\n|`Property`|The node is the literal value of a property in a JSON object, or a value in a JSON array.|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverticalsoftware%2Fvertical-jsonwriter-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverticalsoftware%2Fvertical-jsonwriter-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverticalsoftware%2Fvertical-jsonwriter-core/lists"}