JsonPointer.Net 5.0.2
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.
Showing the top 20 packages that depend on JsonPointer.Net.
| Packages | Downloads |
|---|---|
|
JsonPatch.Net
JSON Patch built on the System.Test.Json namespace.
|
20 |
|
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace
|
21 |
|
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace
|
22 |
|
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace
|
23 |
|
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace
|
28 |
|
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace.
|
20 |
|
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace.
|
21 |
|
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace.
|
22 |
|
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace.
|
23 |
|
JsonPatch.Net
[JSON Patch](https://tools.ietf.org/html/rfc6902) built on the System.Text.Json namespace.
Read the full documentation at https://docs.json-everything.net/patch/basics/.
|
23 |
|
JsonSchema.Net
JSON Schema built on the System.Text.Json namespace.
|
20 |
Release notes can be found at https://docs.json-everything.net/rn-json-pointer/
.NET 8.0
- Json.More.Net (>= 2.0.1.2)
- Humanizer.Core (>= 2.14.1)
.NET Standard 2.0
- Json.More.Net (>= 2.0.1.2)
- Humanizer.Core (>= 2.14.1)
| Version | Downloads | Last updated |
|---|---|---|
| 5.3.1 | 24 | 02/23/2025 |
| 5.3.0 | 19 | 02/23/2025 |
| 5.2.0 | 21 | 02/23/2025 |
| 5.1.0 | 19 | 02/23/2025 |
| 5.0.2 | 21 | 02/10/2025 |
| 5.0.1 | 20 | 02/23/2025 |
| 5.0.0 | 23 | 02/23/2025 |
| 4.0.1.3 | 19 | 02/23/2025 |
| 4.0.1.1 | 20 | 02/23/2025 |
| 4.0.1 | 23 | 02/23/2025 |
| 4.0.0 | 23 | 03/15/2025 |
| 3.3.0 | 22 | 02/23/2025 |
| 3.2.2 | 24 | 02/23/2025 |
| 3.2.1 | 23 | 02/23/2025 |
| 3.2.0 | 18 | 03/13/2025 |
| 3.1.0 | 21 | 02/23/2025 |
| 3.0.3 | 23 | 03/15/2025 |
| 3.0.2 | 22 | 02/23/2025 |
| 3.0.1 | 21 | 02/23/2025 |
| 3.0.0 | 21 | 02/23/2025 |
| 2.2.1 | 20 | 02/23/2025 |
| 2.2.0 | 25 | 02/23/2025 |
| 2.1.0 | 22 | 02/23/2025 |
| 2.0.0 | 21 | 02/23/2025 |
| 1.4.0 | 21 | 03/15/2025 |
| 1.3.3 | 24 | 02/23/2025 |
| 1.3.2 | 19 | 03/14/2025 |
| 1.3.1 | 21 | 02/23/2025 |
| 1.3.0 | 23 | 02/23/2025 |
| 1.2.0 | 23 | 02/23/2025 |
| 1.1.2 | 17 | 02/27/2025 |
| 1.1.1 | 22 | 02/23/2025 |
| 1.1.0 | 21 | 03/06/2025 |
| 1.0.0 | 19 | 03/15/2025 |
| 1.0.0-rc2 | 18 | 02/23/2025 |
| 1.0.0-rc1 | 22 | 02/23/2025 |