JsonPathToModel 1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package JsonPathToModel --version 1.0.1
NuGet\Install-Package JsonPathToModel -Version 1.0.1
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="JsonPathToModel" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JsonPathToModel" Version="1.0.1" />
<PackageReference Include="JsonPathToModel" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JsonPathToModel --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JsonPathToModel, 1.0.1"
#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.
#:package JsonPathToModel@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JsonPathToModel&version=1.0.1
#tool nuget:?package=JsonPathToModel&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
JsonPathToModel
Use JsonPath to navigate through .NET in memory models
Usage:
var model = new SampleModel
{
Id = "7",
Name = "Gerry",
Nested = new([new SampleNested { Id = "xyz", Name = "Pedro" }])
};
var navi = new JsonPathModelNavigator();
var resultSingle = navi.GetValue(model, "$.Id");
navi.GetValue(model, "$.Nested[0].Name");
var resultValues = navi.SelectValues(model, "$.Nested[*].Id");
navi.SelectValues(model, "$.Nested[*].Name");
var result = navi.SetValue(model, "$.Nested[0].Name", "Abdula");
Model:
public class SampleModel
{
public string Id { get; set; }
public string Name { get; set; }
public List<SampleNested> Nested { get; set; } = [];
}
public class SampleNested
{
public string Id { get; set; }
public string Name { get; set; }
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- FluentResults (>= 3.16.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on JsonPathToModel:
Package | Downloads |
---|---|
MicroFlows
Use MicroFlows to implement Stateful workflows for microservices |
|
MicroForms
Low-code form builder with advanced rule engine and microflows support for microservices |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated | |
---|---|---|---|
2.2.0 | 250 | 5/26/2025 | |
2.1.0 | 150 | 5/25/2025 | |
2.0.0 | 183 | 4/28/2025 | |
1.6.1 | 1,650 | 10/14/2024 | |
1.6.0 | 166 | 9/21/2024 | |
1.5.7 | 183 | 9/16/2024 | |
1.5.6 | 463 | 9/16/2024 | |
1.5.5 | 164 | 9/14/2024 | |
1.5.4 | 135 | 9/14/2024 | |
1.5.3 | 208 | 9/13/2024 | |
1.5.2 | 140 | 9/13/2024 | |
1.5.1 | 136 | 9/13/2024 | |
1.5.0 | 134 | 9/13/2024 | |
1.4.0 | 215 | 9/9/2024 | |
1.3.2 | 240 | 9/6/2024 | |
1.3.1 | 258 | 9/2/2024 | |
1.3.0 | 139 | 9/2/2024 | |
1.2.6 | 138 | 8/29/2024 | |
1.2.5 | 150 | 8/29/2024 | |
1.2.4 | 135 | 8/27/2024 | |
1.2.3 | 128 | 8/27/2024 | |
1.2.2 | 138 | 8/26/2024 | |
1.2.1 | 143 | 8/26/2024 | |
1.2.0 | 184 | 8/25/2024 | |
1.1.0 | 139 | 8/20/2024 | |
1.0.1 | 162 | 8/19/2024 | |
1.0.0 | 163 | 8/19/2024 |