ObjectNotation.JSONCollections
0.0.9
See the version list below for details.
dotnet add package ObjectNotation.JSONCollections --version 0.0.9
NuGet\Install-Package ObjectNotation.JSONCollections -Version 0.0.9
<PackageReference Include="ObjectNotation.JSONCollections" Version="0.0.9" />
<PackageVersion Include="ObjectNotation.JSONCollections" Version="0.0.9" />
<PackageReference Include="ObjectNotation.JSONCollections" />
paket add ObjectNotation.JSONCollections --version 0.0.9
#r "nuget: ObjectNotation.JSONCollections, 0.0.9"
#:package ObjectNotation.JSONCollections@0.0.9
#addin nuget:?package=ObjectNotation.JSONCollections&version=0.0.9
#tool nuget:?package=ObjectNotation.JSONCollections&version=0.0.9
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 was computed. 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.