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.
|
1 |
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace
|
1 |
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace
|
3 |
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace
|
4 |
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace.
|
1 |
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace.
|
2 |
JsonPatch.Net
JSON Patch built on the System.Text.Json namespace.
|
3 |
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 | 0 | 02/04/2025 |
5.3.0 | 0 | 01/19/2025 |
5.2.0 | 0 | 01/02/2025 |
5.1.0 | 0 | 11/30/2024 |
5.0.2 | 1 | 02/10/2025 |
5.0.1 | 0 | 06/30/2024 |
5.0.0 | 0 | 05/01/2024 |
4.0.1.3 | 0 | 04/19/2024 |
4.0.1.1 | 0 | 04/19/2024 |
4.0.1 | 0 | 03/07/2024 |
4.0.0 | 0 | 02/03/2024 |
3.3.0 | 0 | 12/14/2023 |
3.2.2 | 0 | 12/06/2023 |
3.2.1 | 0 | 12/04/2023 |
3.2.0 | 0 | 11/17/2023 |
3.1.0 | 0 | 10/28/2023 |
3.0.3 | 0 | 08/26/2023 |
3.0.2 | 0 | 07/23/2023 |
3.0.1 | 0 | 03/30/2023 |
3.0.0 | 0 | 12/01/2022 |
2.2.1 | 0 | 06/16/2022 |
2.2.0 | 0 | 03/28/2022 |
2.1.0 | 0 | 11/15/2021 |
2.0.0 | 0 | 11/11/2021 |
1.4.0 | 0 | 09/11/2021 |
1.3.3 | 0 | 06/18/2021 |
1.3.2 | 0 | 02/24/2021 |
1.3.1 | 0 | 01/01/2021 |
1.3.0 | 0 | 12/19/2020 |
1.2.0 | 0 | 12/14/2020 |
1.1.2 | 0 | 11/28/2020 |
1.1.1 | 0 | 09/29/2020 |
1.1.0 | 0 | 09/01/2020 |
1.0.0 | 0 | 08/29/2020 |
1.0.0-rc2 | 0 | 08/29/2020 |
1.0.0-rc1 | 0 | 08/28/2020 |