Output native types in JSON.
authorDave Longley <dlongley@digitalbazaar.com>
Wed, 26 Sep 2012 14:10:07 -0400
changeset 876 9f33e4579716
parent 875 2ee93c43b470
child 877 ed059e5064b4
Output native types in JSON.
test-suite/tests/fromRdf-0002-out.jsonld
--- a/test-suite/tests/fromRdf-0002-out.jsonld	Wed Sep 26 11:27:38 2012 -0400
+++ b/test-suite/tests/fromRdf-0002-out.jsonld	Wed Sep 26 14:10:07 2012 -0400
@@ -1,10 +1,10 @@
 [{
   "@id": "http://example.com/Subj1",
   "http://example.com/prop": [
-    {"@value": "true", "@type": "http://www.w3.org/2001/XMLSchema#boolean"},
-    {"@value": "false", "@type": "http://www.w3.org/2001/XMLSchema#boolean"},
-    {"@value": "1", "@type": "http://www.w3.org/2001/XMLSchema#integer"},
+    {"@value": true, "@type": "http://www.w3.org/2001/XMLSchema#boolean"},
+    {"@value": false, "@type": "http://www.w3.org/2001/XMLSchema#boolean"},
+    {"@value": 1, "@type": "http://www.w3.org/2001/XMLSchema#integer"},
     {"@value": "1.1", "@type": "http://www.w3.org/2001/XMLSchema#decimal"},
-    {"@value": "1.1E1", "@type": "http://www.w3.org/2001/XMLSchema#double"}
+    {"@value": 11, "@type": "http://www.w3.org/2001/XMLSchema#double"}
   ]
 }]
\ No newline at end of file