cosullivan / Hypermedia

Hypermedia library for .NET
http://cainosullivan.com/Hypermedia
MIT License
47 stars 12 forks source link

Decimal to String conversion fails #29

Closed hughesjs closed 2 years ago

hughesjs commented 2 years ago

Might be a bit of a niche issue but Hypermedia.Json.Converters.PrimitiveConterter.DeserializeValue falls over for the following case:

type: System.String
jsonValue: decimal 90503

Given that JsonValue already comes with a .Stringify() method, it seems to make sense to me to use that instead.