VOOZH about

URL: https://www.nuget.org/packages/Neuroglia.Data.Expressions.JQ/

⇱ NuGet Gallery | Neuroglia.Data.Expressions.JQ 4.24.0




👁 Image
Neuroglia.Data.Expressions.JQ 4.24.0

Prefix Reserved
dotnet add package Neuroglia.Data.Expressions.JQ --version 4.24.0
 
 
NuGet\Install-Package Neuroglia.Data.Expressions.JQ -Version 4.24.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.24.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.24.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.24.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Neuroglia.Data.Expressions.JQ, 4.24.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.
#:package Neuroglia.Data.Expressions.JQ@4.24.0
 
 
#: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=Neuroglia.Data.Expressions.JQ&version=4.24.0
 
Install as a Cake Addin
#tool nuget:?package=Neuroglia.Data.Expressions.JQ&version=4.24.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.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.24.0 483 8/18/2025
4.23.1 913 6/19/2025
4.23.0 427 6/11/2025
4.22.0 312 5/26/2025
4.21.0 421 4/2/2025
4.20.1 316 3/14/2025
4.20.0 307 3/12/2025
4.19.5 339 3/3/2025
4.19.4 259 2/27/2025
4.19.3 275 2/21/2025
4.19.2 845 2/3/2025
4.19.1 649 1/31/2025
4.19.0 291 1/24/2025
4.18.1 857 12/10/2024
4.18.0 324 12/10/2024
4.16.2 361 11/20/2024
4.16.1 250 11/18/2024
4.16.0 342 11/14/2024
4.15.9 254 11/14/2024
4.15.8 734 10/11/2024
Loading failed