ObjectNotation.JSONCollections
2.0.0
dotnet add package ObjectNotation.JSONCollections --version 2.0.0
NuGet\Install-Package ObjectNotation.JSONCollections -Version 2.0.0
<PackageReference Include="ObjectNotation.JSONCollections" Version="2.0.0" />
<PackageVersion Include="ObjectNotation.JSONCollections" Version="2.0.0" />
<PackageReference Include="ObjectNotation.JSONCollections" />
paket add ObjectNotation.JSONCollections --version 2.0.0
#r "nuget: ObjectNotation.JSONCollections, 2.0.0"
#:package ObjectNotation.JSONCollections@2.0.0
#addin nuget:?package=ObjectNotation.JSONCollections&version=2.0.0
#tool nuget:?package=ObjectNotation.JSONCollections&version=2.0.0
Object Notation package
The Object Notation package is an implementation of C# as a JSON notation utility from within a Visual Studio environment.
Gratitude
I appreciate the contributions made to this package. If you want to contribute, you can do so at this address: https://donorbox.org/embed/wasb
Code Sample
//######################## string jsonString = JSONCollections.ConvertHTTPQueryStringToJSONString("array[ngc]=748161992&array[ud]=ALCELA&array[f]=30/05/2023 16:21&array[uni][1_IF][0][u]=PAREDOR&array[uni][1_IF][0][n]=15&array[uni][1_IF][1][u]=YAMARAL&array[uni][1_IF][1][n]=16.5"); //########################
//####################### string jsonString = "{\"ngc\":\"748426658\",\"ud\":\"jtorres17\",\"f\":\"31/07/2023 18:17\",\"uni\":{\"1_CL\":{\"1\":{\"u\":\"aaguirre8\",\"n\":\"18\"},\"2\":{\"u\":\"jayala7\",\"n\":\"19\"}}}}"; Dictionary<string, Object> dctParam = null; dctParam = (Dictionary<string, Object>)JSONCollections.ConvertJSONStringToCollection(jsonString); //#######################
//#######################
public IEnumerable<Dictionary<string, string>> GetResult(long id)
{
var query = "";
query = "sp_ResultadoRegistro";
var param = new DynamicParameters();
param.Add("@id", id, DbType.Int32);
var data = SqlMapper.Query(this._connectionFactory.GetConnection, query, param, commandType: CommandType.StoredProcedure);
return JSONCollections.ConvertEnumerableToListOfDictionary(data);
}
//#######################
//####################### [HttpPost("RegistrarCalificacion")] [ProducesResponseType(200)] [ProducesResponseType(400)] public IActionResult RegistrarCalificacion([FromBody] Dictionary<string, object> json) { string jsonString = JSONCollections.ConvertHttpDictionaryToJSONString(json);
...
} //#######################
Bug report
If you want to send a comment or report a problem, you can do it directly to my email wasbtjsm@gmail.com
Thank you for the trust given!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. 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 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. |
-
net5.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.