JsonLogic 5.3.0
dotnet add package JsonLogic --version 5.3.0
NuGet\Install-Package JsonLogic -Version 5.3.0
<PackageReference Include="JsonLogic" Version="5.3.0" />
paket add JsonLogic --version 5.3.0
#r "nuget: JsonLogic, 5.3.0"
// Install JsonLogic as a Cake Addin #addin nuget:?package=JsonLogic&version=5.3.0 // Install JsonLogic as a Cake Tool #tool nuget:?package=JsonLogic&version=5.3.0
Summary
JsonLogic implements the JSON Logic format, a declarative, data-driven way to define rules.
Links
Usage
var rule = JsonNode.Parse(
"""
{
"and": [
{ "<": [{ "var": "temp" }, 110 ]},
{ "==": [{ "var": "pie.filling" }, "apple" ]}
]
}
"""
);
var data = JsonNode.Parse(
"""
{
"temp" : 100,
"pie" : { "filling" : "apple" }
}
"""
);
var result = JsonLogic.Apply(rule, data);
// result: true
Sponsorship
If you found this library helpful and would like to promote continued development, please consider sponsoring the maintainers.
Product | Versions 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. |
-
.NETStandard 2.0
- JsonPointer.Net (>= 5.0.2)
-
net8.0
- JsonPointer.Net (>= 5.0.2)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on JsonLogic:
Package | Downloads |
---|---|
Umbraco.Forms.Web
Umbraco Forms Web encapsulates web components of the forms builder for use by package developers. |
|
Shinya.Core
Shinya.Framework |
|
Siccar.Application
This library enables working with the Blueprint models in the Siccar Application. For more infromation see: https://siccar.net/docs For this release see notes - https://projectbob.visualstudio.com/_git/SICCARV3?path=/src/Common/SiccarApplicationBlueprint/README.md For the change log - https://projectbob.visualstudio.com/_git/SICCARV3?path=/src/Common/SiccarApplicationBlueprint/CHANGELOG.md |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.3.0 | 2,906 | 11/16/2024 |
5.2.1 | 82,359 | 4/20/2024 |
5.2.0.2 | 154 | 4/19/2024 |
5.2.0.1 | 115 | 4/19/2024 |
5.2.0 | 112 | 4/18/2024 |
5.1.0 | 8,688 | 3/4/2024 |
5.0.0 | 5,088 | 2/3/2024 |
4.0.4 | 100,173 | 3/29/2023 |
4.0.3 | 1,295 | 3/20/2023 |
4.0.2 | 328 | 3/19/2023 |
4.0.1 | 820 | 3/8/2023 |
4.0.0 | 322 | 3/8/2023 |
3.3.2 | 3,177 | 2/22/2023 |
3.3.1 | 1,379 | 2/2/2023 |
3.3.0 | 659 | 1/23/2023 |
3.2.0 | 29,291 | 9/1/2022 |
3.1.2 | 3,570 | 8/16/2022 |
3.1.1 | 1,417 | 8/5/2022 |
3.1.0 | 18,243 | 7/22/2022 |
3.0.1 | 6,122 | 6/17/2022 |
3.0.0 | 957 | 6/13/2022 |
2.0.0 | 7,776 | 5/18/2022 |
1.4.0 | 82,786 | 1/14/2022 |
1.3.2 | 977 | 11/13/2021 |
1.3.1 | 3,082 | 6/20/2021 |
1.3.0 | 580 | 4/3/2021 |
1.2.1 | 496 | 2/24/2021 |
1.2.0 | 486 | 1/17/2021 |
1.1.0 | 479 | 1/1/2021 |
1.0.1 | 504 | 1/1/2021 |
1.0.0 | 1,438 | 12/23/2020 |
Release notes can be found at https://docs.json-everything.net/rn-json-logic/