From 42903065d9bf7a2f4d0d4933a69035b740191364 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Mon, 11 Feb 2013 11:01:05 -0500 Subject: [PATCH] Use array to add compacted item when expanded property is @list. --- jsonld.php | 1 + 1 file changed, 1 insertion(+) diff --git a/jsonld.php b/jsonld.php index 8d7b594..a5327ea 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1609,6 +1609,7 @@ class JsonLdProcessor { // array, or key is @graph $is_array = ($container === '@set' || $container === '@list' || (is_array($compacted_item) && count($compacted_item) === 0) || + $expanded_property === '@list' || $expanded_property === '@graph'); // add compact value