Closed detlefm closed 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
I updated SWAN JSON to support primitives. Please check version Swan Lite 0.13.0
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