W3C home > Mailing lists > Public > public-linked-json@w3.org > December 2014

Compaciting @list with single element

From: <tomasz@t-code.pl>
Date: Sun, 07 Dec 2014 12:00:01 +0000
Message-ID: <252c83ce312cd64b4ce39f3b0bad41c0@rainloop.t-code.pl>
To: public-linked-json@w3.org

Sorry about the incomplete email.

The specs [1] say that when a property is defined in @context as @container @list or @set it will always be represented as an array, even if there's only one value.

However in the playground it works for @set [2] but not for @list [3].

Is that a bug or did I misunderstand the specs?

[1]: http://www.w3.org/TR/json-ld/#sets-and-lists
[2]: http://tinyurl.com/o6nhftk
[3]: http://tinyurl.com/nd8rkkn
Received on Sunday, 7 December 2014 12:00:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:43 UTC