Neuroglia.Data.Expressions.JQ
4.16.2
Prefix Reserved
dotnet add package Neuroglia.Data.Expressions.JQ --version 4.16.2
NuGet\Install-Package Neuroglia.Data.Expressions.JQ -Version 4.16.2
<PackageReference Include="Neuroglia.Data.Expressions.JQ" Version="4.16.2" />
paket add Neuroglia.Data.Expressions.JQ --version 4.16.2
#r "nuget: Neuroglia.Data.Expressions.JQ, 4.16.2"
// Install Neuroglia.Data.Expressions.JQ as a Cake Addin #addin nuget:?package=Neuroglia.Data.Expressions.JQ&version=4.16.2 // Install Neuroglia.Data.Expressions.JQ as a Cake Tool #tool nuget:?package=Neuroglia.Data.Expressions.JQ&version=4.16.2
Neuroglia.Data.Expressions.JQ
A .NET package to evaluate expressions using jq
. This library integrates jq
with .NET applications, making it simple to work with JSON data transformations and expressions.
Getting Started
Installation
- Add the package to your .NET project:
dotnet add package Neuroglia.Data.Expressions.JQ
- Ensure
jq
is installed:
apt-get update
apt-get install jq -y
For other systems, refer to the official jq
installation guide.
Configuration
Optionally, configure the JQ Expression Evaluator in your application's Dependency Injection (DI) container:
services.AddJQExpressionEvaluator(options =>
{
options.UseSerializer<MyJsonSerializerImplementation>(); // Optional: Defaults to the first registered `IJsonSerializer`
}, ServiceLifetime.Singleton);
Usage
After setup, you can start using the evaluator to process expressions.
Example Code
var defaultEvaluator = serviceProvider.GetRequiredService<IExpressionEvaluator>();
var explicitEvaluator = serviceProvider.GetRequiredService<IExpressionEvaluatorProvider>().GetEvaluator("jq");
var expression = "{ \"foo\": .foo, \"bar\": $param1.bar }";
var input = new
{
foo = "bar"
};
var arguments = new Dictionary<string, object>()
{
{
"param1",
new
{
bar = "baz"
}
}
};
var result = await defaultEvaluator.EvaluateAsync(expression, input, arguments, typeof(MyResult));
public class MyResult
{
public string Foo { get; set; }
public string Bar { get; set; }
}
Features
- Easily integrate the
jq
tool with .NET applications. - Support for Dependency Injection with customizable options.
- Strongly-typed evaluation for JSON transformation.
- Flexible serialization options.
Requirements
- .NET Version: Compatible with .NET 9+.
- jq: Ensure
jq
is installed on your system.
Contributing
Feel free to contribute to this project! Please submit issues, feature requests, or pull requests on the GitHub repository.
License
This project is licensed under the Apache 2.0
license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Neuroglia.Data.Expressions.Abstractions (>= 4.16.2)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Neuroglia.Data.Expressions.JQ:
Package | Downloads |
---|---|
CloudStreams.Core.Api
Package Description |
|
CloudStreams.Gateway.Api
Package Description |
|
CloudStreams.Broker.Api
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Neuroglia.Data.Expressions.JQ:
Repository | Stars |
---|---|
serverlessworkflow/synapse
Serverless Workflow Management System (WFMS)
|
Version | Downloads | Last updated |
---|---|---|
4.16.2 | 36 | 11/20/2024 |
4.16.1 | 68 | 11/18/2024 |
4.16.0 | 84 | 11/14/2024 |
4.15.9 | 64 | 11/14/2024 |
4.15.8 | 511 | 10/11/2024 |
4.15.7 | 83 | 10/9/2024 |
4.15.6 | 400 | 9/10/2024 |
4.15.5 | 113 | 9/10/2024 |
4.15.4 | 237 | 9/8/2024 |
4.15.3 | 198 | 9/2/2024 |
4.15.2 | 110 | 8/30/2024 |
4.15.1 | 107 | 8/26/2024 |
4.15.0 | 417 | 8/26/2024 |
4.14.1 | 189 | 8/21/2024 |
4.14.0 | 142 | 8/16/2024 |
4.13.0 | 119 | 8/16/2024 |
4.12.10 | 129 | 8/14/2024 |
4.12.9 | 129 | 8/14/2024 |
4.12.8 | 123 | 8/12/2024 |
4.12.7 | 126 | 8/8/2024 |
4.12.6 | 72 | 7/25/2024 |
4.12.5 | 114 | 7/9/2024 |
4.12.4 | 96 | 7/9/2024 |
4.12.3 | 107 | 7/8/2024 |
4.12.2 | 122 | 6/26/2024 |
4.12.1 | 155 | 6/18/2024 |
4.12.0 | 106 | 6/17/2024 |
4.11.3 | 104 | 6/13/2024 |
4.11.2 | 96 | 6/12/2024 |
4.11.1 | 107 | 6/7/2024 |
4.11.0 | 110 | 5/31/2024 |
4.10.0 | 109 | 5/30/2024 |
4.9.15 | 128 | 5/20/2024 |
4.9.14 | 110 | 5/15/2024 |
4.9.13 | 94 | 5/12/2024 |
4.9.12 | 84 | 5/11/2024 |
4.9.11 | 96 | 5/8/2024 |
4.9.10 | 102 | 5/7/2024 |
4.9.9 | 116 | 5/6/2024 |
4.9.8 | 115 | 5/6/2024 |
4.9.7 | 65 | 5/2/2024 |
4.9.6 | 340 | 4/15/2024 |
4.9.5 | 128 | 4/10/2024 |
4.9.4 | 91 | 4/10/2024 |
4.9.3 | 107 | 4/10/2024 |
4.9.2 | 93 | 4/10/2024 |
4.9.1 | 116 | 4/10/2024 |
4.9.0 | 123 | 4/9/2024 |
4.8.5 | 138 | 4/4/2024 |
4.8.4 | 111 | 4/3/2024 |
4.8.3 | 102 | 3/25/2024 |
4.8.2 | 112 | 3/22/2024 |
4.8.1 | 91 | 3/18/2024 |
4.8.0 | 114 | 3/18/2024 |
4.7.7 | 224 | 12/8/2023 |
4.7.6 | 132 | 12/6/2023 |
4.7.5 | 145 | 12/5/2023 |
4.7.4 | 141 | 12/5/2023 |
4.7.3 | 135 | 12/4/2023 |
4.7.2 | 141 | 12/4/2023 |
4.7.1 | 146 | 12/1/2023 |
4.7.0 | 124 | 11/28/2023 |
4.6.1 | 112 | 11/27/2023 |
4.6.0 | 152 | 11/25/2023 |
4.5.2 | 125 | 11/25/2023 |
4.5.1 | 147 | 11/23/2023 |
4.5.0 | 135 | 11/23/2023 |
4.4.2 | 133 | 11/22/2023 |
4.4.1 | 122 | 11/21/2023 |
4.4.0 | 153 | 11/21/2023 |
4.3.3 | 133 | 11/20/2023 |
4.3.2 | 106 | 11/20/2023 |
4.3.1 | 131 | 11/20/2023 |
4.3.0 | 116 | 11/20/2023 |
4.2.1 | 134 | 11/17/2023 |
4.2.0 | 131 | 11/17/2023 |
4.1.0 | 128 | 11/17/2023 |
4.0.0 | 129 | 11/15/2023 |
3.10.0 | 112 | 11/15/2023 |
3.9.0 | 129 | 11/15/2023 |
3.8.4 | 128 | 11/10/2023 |
3.8.3 | 136 | 11/10/2023 |
3.8.2 | 108 | 11/10/2023 |
3.8.1 | 128 | 11/10/2023 |
3.8.0 | 120 | 11/9/2023 |
3.7.0 | 125 | 11/8/2023 |
3.6.1 | 120 | 11/8/2023 |
3.6.0 | 110 | 11/7/2023 |
3.5.2 | 138 | 11/6/2023 |
3.5.1 | 126 | 11/3/2023 |
3.5.0 | 120 | 11/3/2023 |
3.4.0 | 147 | 10/25/2023 |
3.3.0 | 136 | 10/23/2023 |
3.2.0 | 131 | 10/19/2023 |
3.1.1 | 140 | 10/18/2023 |
3.1.0 | 153 | 10/18/2023 |
3.0.1 | 138 | 10/16/2023 |
2.1.4 | 954 | 7/14/2023 |
2.1.3 | 208 | 6/22/2023 |
2.1.2 | 389 | 5/31/2023 |
2.1.1 | 377 | 5/25/2023 |
2.1.0 | 293 | 4/4/2023 |
2.0.12 | 1,927 | 11/21/2022 |
2.0.11 | 364 | 11/21/2022 |
2.0.10 | 421 | 11/17/2022 |
2.0.9 | 461 | 11/14/2022 |
2.0.8 | 541 | 11/14/2022 |
2.0.7 | 575 | 11/7/2022 |
2.0.6 | 616 | 11/2/2022 |
2.0.5 | 534 | 10/27/2022 |
2.0.4 | 481 | 10/27/2022 |
2.0.3 | 755 | 10/3/2022 |
2.0.2 | 519 | 9/28/2022 |
2.0.1.88 | 593 | 9/23/2022 |
2.0.1.87 | 519 | 9/23/2022 |
2.0.1.86 | 499 | 9/20/2022 |
2.0.1.85 | 515 | 9/20/2022 |
2.0.1.84 | 509 | 9/19/2022 |
2.0.1.83 | 474 | 9/19/2022 |
2.0.1.82 | 632 | 9/9/2022 |
2.0.1.81 | 491 | 9/9/2022 |
2.0.1.80 | 477 | 9/9/2022 |
2.0.1.79 | 517 | 9/8/2022 |
2.0.1.78 | 503 | 9/7/2022 |
2.0.1.77 | 485 | 9/7/2022 |
2.0.1.76 | 466 | 9/7/2022 |
2.0.1.75 | 516 | 9/5/2022 |
2.0.1.74 | 487 | 9/5/2022 |
2.0.1.73 | 570 | 9/2/2022 |
2.0.1.72 | 515 | 9/1/2022 |
2.0.1.71 | 651 | 8/24/2022 |
2.0.1.70 | 649 | 8/23/2022 |
2.0.1.69 | 618 | 8/16/2022 |
2.0.1.68 | 621 | 8/10/2022 |
2.0.1.67 | 1,027 | 6/28/2022 |
2.0.1.66 | 552 | 6/17/2022 |
2.0.1.65 | 507 | 5/25/2022 |
2.0.1.64 | 507 | 5/25/2022 |
2.0.1.63 | 759 | 5/19/2022 |
2.0.1.62 | 656 | 5/11/2022 |
2.0.1.61 | 502 | 5/2/2022 |
2.0.1.60 | 499 | 4/28/2022 |
2.0.1.59 | 690 | 4/21/2022 |
2.0.1.58 | 530 | 4/18/2022 |
2.0.1.57 | 776 | 3/31/2022 |
2.0.1.56 | 500 | 3/31/2022 |
2.0.1.55 | 503 | 3/31/2022 |
2.0.1.54 | 494 | 3/29/2022 |
2.0.1.53 | 494 | 3/29/2022 |
2.0.1.52 | 524 | 3/20/2022 |
2.0.1.51 | 500 | 3/20/2022 |
2.0.1.50 | 504 | 3/20/2022 |
2.0.1.49 | 512 | 3/20/2022 |
2.0.1.48 | 507 | 3/19/2022 |
2.0.1.47 | 478 | 3/19/2022 |
2.0.1.46 | 479 | 3/19/2022 |
2.0.1.45 | 544 | 3/15/2022 |
2.0.1.44 | 517 | 3/14/2022 |
2.0.1.43 | 484 | 3/14/2022 |
2.0.1.42 | 495 | 3/10/2022 |
2.0.1.41 | 495 | 3/10/2022 |
2.0.1.40 | 481 | 3/9/2022 |
2.0.1.39 | 513 | 3/8/2022 |
2.0.1.38 | 494 | 3/8/2022 |
2.0.1.37 | 524 | 3/4/2022 |
2.0.1.36 | 484 | 3/4/2022 |
2.0.1.35 | 485 | 3/4/2022 |
2.0.1.34 | 514 | 3/3/2022 |
2.0.1.33 | 496 | 3/2/2022 |
2.0.1.32 | 518 | 2/25/2022 |
2.0.1.31 | 513 | 2/24/2022 |
2.0.1.30 | 497 | 2/23/2022 |
2.0.1.29 | 501 | 2/23/2022 |
2.0.1.28 | 521 | 2/23/2022 |
2.0.1.27 | 504 | 2/22/2022 |
2.0.1.26 | 508 | 2/12/2022 |
2.0.1.25 | 507 | 2/7/2022 |
2.0.1.24 | 566 | 2/4/2022 |
2.0.1.23 | 555 | 1/28/2022 |
2.0.1.22 | 517 | 1/28/2022 |
2.0.1.21 | 505 | 1/26/2022 |
2.0.1.20 | 498 | 1/25/2022 |
2.0.1.19 | 497 | 1/24/2022 |
2.0.1.18 | 517 | 1/23/2022 |
2.0.1.17 | 519 | 1/19/2022 |
2.0.1.16 | 360 | 12/20/2021 |
2.0.1.15 | 339 | 12/16/2021 |
2.0.1.14 | 527 | 12/9/2021 |
2.0.1.13 | 551 | 12/9/2021 |
2.0.1.12 | 366 | 12/9/2021 |
2.0.1.11 | 364 | 12/8/2021 |
2.0.1.10 | 337 | 12/7/2021 |
2.0.1.9 | 344 | 12/7/2021 |
2.0.1.8 | 355 | 12/7/2021 |
2.0.1.7 | 368 | 12/7/2021 |
2.0.1.6 | 354 | 12/7/2021 |
2.0.1.5 | 607 | 12/6/2021 |
2.0.1.4 | 887 | 12/3/2021 |
2.0.1.3 | 343 | 12/2/2021 |
2.0.1.2 | 330 | 12/2/2021 |
2.0.1.1 | 1,830 | 11/26/2021 |
2.0.1 | 6,006 | 11/24/2021 |