HALJSonDeserializer 1.1.2

This package can deserialize any String, Stream, or StreamReader (On HAL+JSON format or not) provided by a web api response.  
On the package console run :
Install-Package HALJSonDeserializer
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 = await HALJSonDeserializer .GetAndParseAsync<Customer>("http://localhost:8080/customer");
If you just want to deserialize a Stream, a StreamReader or a string, there are three extension methods for them. 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

There is a newer version of this package available.
See the version list below for details.
Install-Package HALJSonDeserializer -Version 1.1.2
dotnet add package HALJSonDeserializer --version 1.1.2
<PackageReference Include="HALJSonDeserializer" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HALJSonDeserializer --version 1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HALJSonDeserializer, 1.1.2"
For F# scripts that support #r syntax, copy this into the source code to reference the package.


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 History

Version Downloads Last updated 1,273 3/18/2016 785 3/17/2016 712 3/17/2016
1.1.5 711 3/17/2016
1.1.4 579 3/17/2016
1.1.3 771 3/17/2016
1.1.2 983 3/16/2016
1.1.1 558 3/16/2016
1.1.0 553 3/16/2016
1.0.21 851 3/16/2016
1.0.3 583 3/16/2016
1.0.2 811 3/16/2016
1.0.1 786 3/16/2016
Show less