QueryParser 1.0.8

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

QueryParser

QueryParser it is a .NET package that allows users to convert objects into HTTP query parameters to be used within an HTTP request. This package is designed to be used with ASP.Net controllers and enable C# classes to be sent to API controllers as query parameters. By passing objects using the Query section of an HTTP payload, the quantity of information to be sent using the other HTTP sections is minimised, thus allowing the app to transmit data with more flexibility. This package is using the Newtonsoft.json package.

// [FromQuery] => The controller extracts the required payload from the url query parameters
// [FromBody] => The controller extracts the required payload from the HTTP payload Body section
// [FromHeader] => The controller extracts the required payload from the HTTP payload Header section

public async Task<string?> Get([FromQuery] AuthenticationModel? value)
{
  // Controller content
}

Example usage

Client

Code snippet

Controller

GetAPI Example

Example usage result

Generated URL

QueryParser Result

Controller received payload

Controller Result

Usage

// string query_parameters = QueryParser.QueryParsing.QueryParser<TypeOfTheObjectToBeParsed>(object_to_be_parsed);

string query_parameters = QueryParser.QueryParsing.QueryParser<AuthenticationModel>(authentication);

Download

.NET CLI

dotnet add package QueryParser --version 1.0.4

Package Manager Console

NuGet\Install-Package QueryParser -Version 1.0.4

NuGet: https://www.nuget.org/packages/QueryParser
GitHub: https://github.com/CSharpTeoMan911/QueryParser

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 was computed.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.8 173 4/5/2025