- From: David Wood <david.wood@ephox.com>
- Date: Thu, 22 Sep 2016 12:21:20 +0100
- To: public-socialweb@w3.org
Received on Thursday, 22 September 2016 11:21:49 UTC
Hi all, This is a formal comment on Activity Streams 2.0 CR from Ephox Corporation. The comment applies to: https://www.w3.org/TR/activitystreams-core/ as of 22 September 2016. Section 2, Serialization, states: "If a property has an array value, the absence of any items in that array MUST be represented by omitting the property entirely or by setting the value to null." Omitting an empty property makes sense, but we would not be happy with the use of a null. Parsing JSON can be performed with less, and safer, code if the null was replaced by an empty list, []. Therefore, we suggest: "If a property has an array value, the absence of any items in that array MUST be represented by omitting the property entirely or by setting the value to []." Thank you. Regards, Dave -- David Wood
Received on Thursday, 22 September 2016 11:21:49 UTC