cosullivan / Hypermedia

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

Can't Cast `JsonNumber` to `Double` #36

Closed hughesjs closed 2 years ago

hughesjs commented 2 years ago

This segment in PrimitiveConverter:

if (type == typeof(double))
{
    return (double)((JsonNumber)jsonValue).Value;
}

Seems to throw this exception for 26.8428:

Cannot convert type 'JsonLite.Ast.JsonNumber' to 'double'

hughesjs commented 2 years ago

Nope, no it doesn't... Was throwing on something else, my bad