HALJSonDeserializer 1.1.4
See the version list below for details.
dotnet add package HALJSonDeserializer --version 1.1.4
NuGet\Install-Package HALJSonDeserializer -Version 1.1.4
<PackageReference Include="HALJSonDeserializer" Version="1.1.4" />
paket add HALJSonDeserializer --version 1.1.4
#r "nuget: HALJSonDeserializer, 1.1.4"
// Install HALJSonDeserializer as a Cake Addin #addin nuget:?package=HALJSonDeserializer&version=1.1.4 // Install HALJSonDeserializer as a Cake Tool #tool nuget:?package=HALJSonDeserializer&version=1.1.4
This package can deserialize any String, Stream, or StreamReader provide by a web api response.
Particularity is done on the HAL+JSON response.
Installation:
On the package console run :
Install-Package HALJSonDeserializer
Usage:
After installation you must include the namespace of the package where you will use it:
using haljson;
So now: suppose that you want to call a web api via "http://localhost:8080/customer" in your c# code and to parse it into your custom type called "Customer". This can be done simply as follows:
Customer theCustomer = HALJSonDeserializer .GetAndParse<Customer>("http://localhost:8080/customer");
For async call you can do this:
Customer theCustomer = HALJSonDeserializer .GetAndParseAsync<Customer>("http://localhost:8080/customer");
If you just want to deserialize a Stream, a StreamReader or a string, their are three extrension methods for those type. You can do that as follows:
Customer theCustomer = myStream.ToObject<Customer>(); //For a Stream
Customer theCustomer = myStreamReader.ToObject<Customer>(); //For a StreamReader
Customer theCustomer = myString.ToObject<Customer>(); //For a string
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has 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.
Version | Downloads | Last updated |
---|---|---|
1.1.5.3 | 2,409 | 3/18/2016 |
1.1.5.2 | 1,377 | 3/17/2016 |
1.1.5.1 | 1,309 | 3/17/2016 |
1.1.5 | 1,299 | 3/17/2016 |
1.1.4 | 1,054 | 3/17/2016 |
1.1.3 | 1,370 | 3/17/2016 |
1.1.2 | 1,727 | 3/16/2016 |
1.1.1 | 1,051 | 3/16/2016 |
1.1.0 | 1,049 | 3/16/2016 |
1.0.21 | 1,505 | 3/16/2016 |
1.0.3 | 1,072 | 3/16/2016 |
1.0.2 | 1,308 | 3/16/2016 |
1.0.1 | 1,247 | 3/16/2016 |