Neuroglia.Data.Expressions.JQ 4.21.0

Prefix Reserved
dotnet add package Neuroglia.Data.Expressions.JQ --version 4.21.0
                    
NuGet\Install-Package Neuroglia.Data.Expressions.JQ -Version 4.21.0
                    
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="Neuroglia.Data.Expressions.JQ" Version="4.21.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Neuroglia.Data.Expressions.JQ" Version="4.21.0" />
                    
Directory.Packages.props
<PackageReference Include="Neuroglia.Data.Expressions.JQ" />
                    
Project file
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 Neuroglia.Data.Expressions.JQ --version 4.21.0
                    
#r "nuget: Neuroglia.Data.Expressions.JQ, 4.21.0"
                    
#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.
#addin nuget:?package=Neuroglia.Data.Expressions.JQ&version=4.21.0
                    
Install Neuroglia.Data.Expressions.JQ as a Cake Addin
#tool nuget:?package=Neuroglia.Data.Expressions.JQ&version=4.21.0
                    
Install Neuroglia.Data.Expressions.JQ as a Cake Tool

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

  1. Add the package to your .NET project:
dotnet add package Neuroglia.Data.Expressions.JQ
  1. 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 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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.21.0 209 4/2/2025
4.20.1 130 3/14/2025
4.20.0 150 3/12/2025
4.19.5 193 3/3/2025
4.19.4 101 2/27/2025
4.19.3 114 2/21/2025
4.19.2 599 2/3/2025
4.19.1 240 1/31/2025
4.19.0 120 1/24/2025
4.18.1 551 12/10/2024
4.18.0 132 12/10/2024
4.16.2 205 11/20/2024
4.16.1 101 11/18/2024
4.16.0 158 11/14/2024
4.15.9 101 11/14/2024
4.15.8 585 10/11/2024
4.15.7 106 10/9/2024
4.15.6 477 9/10/2024
4.15.5 134 9/10/2024
4.15.4 259 9/8/2024
4.15.3 217 9/2/2024
4.15.2 130 8/30/2024
4.15.1 128 8/26/2024
4.15.0 439 8/26/2024
4.14.1 209 8/21/2024
4.14.0 160 8/16/2024
4.13.0 139 8/16/2024
4.12.10 149 8/14/2024
4.12.9 149 8/14/2024
4.12.8 142 8/12/2024
4.12.7 150 8/8/2024
4.12.6 90 7/25/2024
4.12.5 134 7/9/2024
4.12.4 114 7/9/2024
4.12.3 127 7/8/2024
4.12.2 141 6/26/2024
4.12.1 178 6/18/2024
4.12.0 126 6/17/2024
4.11.3 122 6/13/2024
4.11.2 115 6/12/2024
4.11.1 126 6/7/2024
4.11.0 127 5/31/2024
4.10.0 126 5/30/2024
4.9.15 144 5/20/2024
4.9.14 130 5/15/2024
4.9.13 113 5/12/2024
4.9.12 105 5/11/2024
4.9.11 114 5/8/2024
4.9.10 123 5/7/2024
4.9.9 132 5/6/2024
4.9.8 131 5/6/2024
4.9.7 85 5/2/2024
4.9.6 361 4/15/2024
4.9.5 144 4/10/2024
4.9.4 108 4/10/2024
4.9.3 125 4/10/2024
4.9.2 112 4/10/2024
4.9.1 132 4/10/2024
4.9.0 138 4/9/2024
4.8.5 153 4/4/2024
4.8.4 126 4/3/2024
4.8.3 119 3/25/2024
4.8.2 126 3/22/2024
4.8.1 105 3/18/2024
4.8.0 131 3/18/2024
4.7.7 240 12/8/2023
4.7.6 140 12/6/2023
4.7.5 155 12/5/2023
4.7.4 150 12/5/2023
4.7.3 145 12/4/2023
4.7.2 149 12/4/2023
4.7.1 155 12/1/2023
4.7.0 134 11/28/2023
4.6.1 126 11/27/2023
4.6.0 160 11/25/2023
4.5.2 135 11/25/2023
4.5.1 156 11/23/2023
4.5.0 145 11/23/2023
4.4.2 146 11/22/2023
4.4.1 132 11/21/2023
4.4.0 162 11/21/2023
4.3.3 142 11/20/2023
4.3.2 115 11/20/2023
4.3.1 139 11/20/2023
4.3.0 125 11/20/2023
4.2.1 143 11/17/2023
4.2.0 143 11/17/2023
4.1.0 136 11/17/2023
4.0.0 138 11/15/2023
3.10.0 122 11/15/2023
3.9.0 140 11/15/2023
3.8.4 136 11/10/2023
3.8.3 148 11/10/2023
3.8.2 116 11/10/2023
3.8.1 137 11/10/2023
3.8.0 131 11/9/2023
3.7.0 133 11/8/2023
3.6.1 128 11/8/2023
3.6.0 118 11/7/2023
3.5.2 149 11/6/2023
3.5.1 136 11/3/2023
3.5.0 130 11/3/2023
3.4.0 157 10/25/2023
3.3.0 146 10/23/2023
3.2.0 142 10/19/2023
3.1.1 152 10/18/2023
3.1.0 163 10/18/2023
3.0.1 151 10/16/2023
2.1.4 1,054 7/14/2023
2.1.3 221 6/22/2023
2.1.2 451 5/31/2023
2.1.1 442 5/25/2023
2.1.0 313 4/4/2023
2.0.12 1,951 11/21/2022
2.0.11 385 11/21/2022
2.0.10 447 11/17/2022
2.0.9 485 11/14/2022
2.0.8 573 11/14/2022
2.0.7 598 11/7/2022
2.0.6 639 11/2/2022
2.0.5 558 10/27/2022
2.0.4 511 10/27/2022
2.0.3 781 10/3/2022
2.0.2 545 9/28/2022
2.0.1.88 619 9/23/2022
2.0.1.87 548 9/23/2022
2.0.1.86 525 9/20/2022
2.0.1.85 541 9/20/2022
2.0.1.84 536 9/19/2022
2.0.1.83 500 9/19/2022
2.0.1.82 657 9/9/2022
2.0.1.81 517 9/9/2022
2.0.1.80 502 9/9/2022
2.0.1.79 542 9/8/2022
2.0.1.78 530 9/7/2022
2.0.1.77 510 9/7/2022
2.0.1.76 491 9/7/2022
2.0.1.75 541 9/5/2022
2.0.1.74 512 9/5/2022
2.0.1.73 596 9/2/2022
2.0.1.72 540 9/1/2022
2.0.1.71 676 8/24/2022
2.0.1.70 708 8/23/2022
2.0.1.69 644 8/16/2022
2.0.1.68 648 8/10/2022
2.0.1.67 1,091 6/28/2022
2.0.1.66 580 6/17/2022
2.0.1.65 535 5/25/2022
2.0.1.64 535 5/25/2022
2.0.1.63 786 5/19/2022
2.0.1.62 684 5/11/2022
2.0.1.61 529 5/2/2022
2.0.1.60 527 4/28/2022
2.0.1.59 720 4/21/2022
2.0.1.58 560 4/18/2022
2.0.1.57 808 3/31/2022
2.0.1.56 530 3/31/2022
2.0.1.55 533 3/31/2022
2.0.1.54 525 3/29/2022
2.0.1.53 523 3/29/2022
2.0.1.52 554 3/20/2022
2.0.1.51 528 3/20/2022
2.0.1.50 533 3/20/2022
2.0.1.49 542 3/20/2022
2.0.1.48 535 3/19/2022
2.0.1.47 506 3/19/2022
2.0.1.46 506 3/19/2022
2.0.1.45 572 3/15/2022
2.0.1.44 547 3/14/2022
2.0.1.43 512 3/14/2022
2.0.1.42 526 3/10/2022
2.0.1.41 527 3/10/2022
2.0.1.40 510 3/9/2022
2.0.1.39 541 3/8/2022
2.0.1.38 526 3/8/2022
2.0.1.37 553 3/4/2022
2.0.1.36 512 3/4/2022
2.0.1.35 514 3/4/2022
2.0.1.34 543 3/3/2022
2.0.1.33 528 3/2/2022
2.0.1.32 547 2/25/2022
2.0.1.31 544 2/24/2022
2.0.1.30 529 2/23/2022
2.0.1.29 530 2/23/2022
2.0.1.28 549 2/23/2022
2.0.1.27 533 2/22/2022
2.0.1.26 538 2/12/2022
2.0.1.25 538 2/7/2022
2.0.1.24 596 2/4/2022
2.0.1.23 590 1/28/2022
2.0.1.22 550 1/28/2022
2.0.1.21 537 1/26/2022
2.0.1.20 528 1/25/2022
2.0.1.19 527 1/24/2022
2.0.1.18 549 1/23/2022
2.0.1.17 550 1/19/2022
2.0.1.16 391 12/20/2021
2.0.1.15 371 12/16/2021
2.0.1.14 558 12/9/2021
2.0.1.13 582 12/9/2021
2.0.1.12 397 12/9/2021
2.0.1.11 394 12/8/2021
2.0.1.10 367 12/7/2021
2.0.1.9 377 12/7/2021
2.0.1.8 386 12/7/2021
2.0.1.7 399 12/7/2021
2.0.1.6 386 12/7/2021
2.0.1.5 639 12/6/2021
2.0.1.4 918 12/3/2021
2.0.1.3 374 12/2/2021
2.0.1.2 365 12/2/2021
2.0.1.1 1,861 11/26/2021
2.0.1 6,037 11/24/2021