JsonPointer.Net
v7.0.3Latest Stable
net10.0net8.0net9.0.NETStandard2.0
JSON Pointer built on the System.Text.Json namespace
Published
Aug 8, 2026
2mo ago
Total Downloads
101.0M
100,966,646
Install
dotnet add package JsonPointer.Net --version 7.0.3
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
Summary
JsonPointer.Net implements the JSON Pointer specification RFC 6901, a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document.
Links
Usage
Parse a pointer:
var pointer = JsonPointer.Parse("/objects/and/3/arrays");
Build it manually:
var pointer = JsonPointer.Create("object", "and", 3, "arrays");
Or generate using an LINQ expression:
var pointer = JsonPointer.Create<MyObject>(x => x.objects.and[3].arrays);
Use the pointer to query JsonElement:
using var element = JsonDocument.Parse("{\"objects\":{\"and\":[\"item zero\",null,2,{\"arrays\":\"found me\"}]}}");
var result = pointer.Evaluate(element.RootElement);
// result: "found me"
or JsonNode:
var element = JsonNode.Parse("{\"objects\":{\"and\":[\"item zero\",null,2,{\"arrays\":\"found me\"}]}}");
var success = pointer.TryEvaluate(element, out var result);
// success: true
// result: "found me"
Sponsorship
If you found this library helpful and would like to promote continued development, please consider sponsoring the maintainers.
Changes from Previous Version
No structural changes between v7.0.2 and v7.0.3.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.