RE: XSD datatypes in JSON-LD (was: Re: Use of XSD namespace in RDF recommendations)

On Wednesday, September 05, 2012 11:50 AM, Richard Cyganiak wrote:

> Why not convert "5"^^xsd:double to a JSON-native 5.0? This would allow
> round-tripping, and no useNativeTypes flag is necessary.

The problem is that JSON parsera automatically "normalize" a 5.0 to 5 during
parsing. Since we reuse existing JSON parsers, there's no way for us to
check whether there was a .0 or not.



--
Markus Lanthaler
@markuslanthaler

Received on Wednesday, 5 September 2012 10:20:42 UTC