Remove @graph from output when it is empty and the only member.
authorDave Longley <dlongley@digitalbazaar.com>
Sat, 19 Jan 2013 17:04:41 -0500
changeset 1136 9aed4242f72d
parent 1135 1cab0428b9f0
child 1137 548b07e9079c
Remove @graph from output when it is empty and the only member.

- See: https://github.com/json-ld/json-ld.org/issues/99#issuecomment-5048471
test-suite/tests/compact-0001-out.jsonld
test-suite/tests/compact-0003-out.jsonld
--- a/test-suite/tests/compact-0001-out.jsonld	Thu Jan 17 20:10:11 2013 -0500
+++ b/test-suite/tests/compact-0001-out.jsonld	Sat Jan 19 17:04:41 2013 -0500
@@ -1,3 +1,1 @@
-{
-    "@graph": []
-}
+{}
\ No newline at end of file
--- a/test-suite/tests/compact-0003-out.jsonld	Thu Jan 17 20:10:11 2013 -0500
+++ b/test-suite/tests/compact-0003-out.jsonld	Sat Jan 19 17:04:41 2013 -0500
@@ -1,3 +1,1 @@
-{
-    "@graph": []
-}
+{}
\ No newline at end of file