Google Groups

how to represent collections


Laurent-Walter Goix Mar 15, 2012 3:24 AM
Posted in group: OpenSocial and Gadgets Specification Discussion
hello all,

i have realized to my understanding an inconsistency between OS and AS
on how to represent collections in json:

- AS (http://activitystrea.ms/specs/json/1.0/#collection) mentions
that the various items should be wrapped as array under "items", and
defines a "totalItems" property.
- OS (http://opensocial-resources.googlecode.com/svn/spec/2.0.1/Core-
Data.xml#ActivityStreamsCollection
) mentions a "result", but
specifically an "entry" property where to fit the array and additional
parameters, such as "totalResults" in lieu of the AS "totalItems".
(which is btw opensearch compliant)

could this be clarified in the spec cleanup?

thanks
walter