unosquare / swan

Swan stands for Stuff We All Need. Unosquare's collection of C# extension methods and classes.
https://unosquare.github.io/swan
MIT License
262 stars 28 forks source link

Json RFC-8259 #138

Closed detlefm closed 6 years ago

detlefm commented 6 years ago

The Json.Convert method throws an exception when called with a scalar type like int or string.

Other libs accept a single type and return an array with one item.

It seems the Json Standard had been changed over the years and now a single (non object) value is a valid Josn String. https://stackoverflow.com/questions/18419428/what-is-the-minimum-valid-json

geoperez commented 6 years ago

I updated SWAN JSON to support primitives. Please check version Swan Lite 0.13.0