JsonPointer.Net (7.0.1)

Published 2026-09-09 02:36:36 +03:30 by kayer

Installation

dotnet nuget add source --name kayer --username your_username --password your_token 
dotnet add package --source kayer --version 7.0.1 JsonPointer.Net

About this package

JSON Pointer built on the System.Text.Json namespace

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.

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.

Dependencies

ID Version Target Framework
Json.More.Net 3.0.1 .NETStandard2.0
Humanizer.Core 3.0.10 .NETStandard2.0
Json.More.Net 3.0.1 net10.0
Humanizer.Core 3.0.10 net10.0
Json.More.Net 3.0.1 net8.0
Humanizer.Core 2.14.1 net8.0
Json.More.Net 3.0.1 net9.0
Humanizer.Core 3.0.10 net9.0
Details
NuGet
2026-09-09 02:36:36 +03:30
2
Greg Dennis
116 KiB
Assets (2)
Versions (1) View all
7.0.1 2026-09-09