JsonPointer.Net 5.0.2

dotnet add package JsonPointer.Net --version 5.0.2                
NuGet\Install-Package JsonPointer.Net -Version 5.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JsonPointer.Net" Version="5.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JsonPointer.Net --version 5.0.2                
#r "nuget: JsonPointer.Net, 5.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install JsonPointer.Net as a Cake Addin
#addin nuget:?package=JsonPointer.Net&version=5.0.2

// Install JsonPointer.Net as a Cake Tool
#tool nuget:?package=JsonPointer.Net&version=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.

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (12)

Showing the top 5 NuGet packages that depend on JsonPointer.Net:

Package Downloads
Microsoft.PowerShell.Commands.Utility

Runtime for hosting PowerShell

JsonSchema.Net

JSON Schema built on the System.Text.Json namespace.

JsonPatch.Net

JSON Patch built on the System.Text.Json namespace

JsonLogic

JsonLogic built on the System.Text.Json namespace

Azure.Deployments.Extensibility.Core

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on JsonPointer.Net:

Repository Stars
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
Version Downloads Last updated
5.0.2 416,615 7/2/2024
5.0.1 8,819 6/30/2024
5.0.0 1,033,782 5/1/2024
4.0.1.3 103,435 4/19/2024
4.0.1.1 217 4/19/2024
4.0.1 13,564 3/7/2024
4.0.0 808,559 2/3/2024
3.3.0 71,691 12/14/2023
3.2.2 875 12/6/2023
3.2.1 573 12/4/2023
3.2.0 13,100 11/17/2023
3.1.0 4,548 10/28/2023
3.0.3 3,111,276 8/26/2023
3.0.2 19,119 7/23/2023
3.0.1 2,386,143 3/30/2023
3.0.0 466,686 12/1/2022
2.2.1 1,919,999 6/16/2022
2.2.0 354,301 3/28/2022
2.1.0 773,544 11/15/2021
2.0.0 57,987 11/11/2021
1.4.0 220,347 9/11/2021
1.3.3 262,633 6/18/2021
1.3.2 124,136 2/24/2021
1.3.1 31,033 1/1/2021
1.3.0 2,230 12/19/2020
1.2.0 8,175 12/14/2020
1.1.2 7,526 11/28/2020
1.1.1 11,015 9/29/2020
1.1.0 2,716 9/1/2020
1.0.0 5,427 8/29/2020
1.0.0-rc2 918 8/29/2020
1.0.0-rc1 935 8/28/2020