jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mdue...@apache.org>
Subject Re: [Jackrabbit Wiki] Update of "Jsop" by ThomasMueller
Date Fri, 09 Dec 2011 12:43:01 GMT


On 9.12.11 11:51, Julian Reschke wrote:
>>>> *If* we want to support ordered collections, than the JSON mapping
>>>> should contain additional information on the sort order of the members.
>>>> Like this:
>>>>
>>>> {"a": {}, "b": {}, "c": {}, "{somejcrrelateduri}sortorder": [ "a", "b",
>>>> "c" ] }
>>>
>>> -1 that's too weird for me. Also, duplicating data is always
>>> problematic.
>>
>> What about
>>
>> {[{"a": {}}, {"b": {}}, {"c": {}}]}
>>
>> ? ;-)
>
> Cute, but will make JSON Pointers complicated - so we would trade a
> usable pointer notation for a more compact object representation.

Right, I wasn't too serious about this. I'd rather go with the explicit 
specification of the order as you proposed.

Michael

Mime
View raw message