Felsökning.Utilities.Json 1.0.0

A library that contains a single class to assist with JSON parsing, when an object returned can either be a single item or a list of items.

Install-Package Felsökning.Utilities.Json -Version 1.0.0
dotnet add package Felsökning.Utilities.Json --version 1.0.0
<PackageReference Include="Felsökning.Utilities.Json" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Felsökning.Utilities.Json --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

A single class to assist with possible conditions where a JSON return might a single item or a list of items or where serialisation might encounter a single item or a list of items. To use:

[JsonProperty("results")]
[JsonConverter(typeof(SingleItemOrListConverter<YourClassHere>))]
public List<YourClassHere> Results { get; set; }

A single class to assist with possible conditions where a JSON return might a single item or a list of items or where serialisation might encounter a single item or a list of items. To use:

[JsonProperty("results")]
[JsonConverter(typeof(SingleItemOrListConverter<YourClassHere>))]
public List<YourClassHere> Results { get; set; }

Release Notes

Initial release.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 549 1/26/2020