tosunthex / CoinGecko

CoinGecko .Net Standard api wrapper
111 stars 46 forks source link

GetAllCoinDataWithId Creates Exception if "genesis_date" is null #4

Closed GonzoKK closed 5 years ago

GonzoKK commented 5 years ago

Example is hydro coin

https://api.coingecko.com/api/v3/coins/hydro?localization=false

image

Quick fix is to Add ItemNullValueHandling to JsonContainerAttribute

[JsonObject(ItemNullValueHandling` = NullValueHandling.Ignore)]

image

Refer https://github.com/JamesNK/Newtonsoft.Json/issues/1429

tosunthex commented 5 years ago

Hi @GonzoKK

NullValueHandling added to genesis_date