You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Jan Lehnardt <ja...@apache.org> on 2009/03/21 14:09:24 UTC

Re: [Couchdb Wiki] Update of "Breaking changes" by SvenHelmberger

On 21 Mar 2009, at 11:38, Apache Wiki wrote:
>
>
> == Changes Between 0.8.x and 0.9.0pre ==
> +
> + === Response to Bulk Creation/Updates ===
> +
> + The response to a bulk creation / update now looks like this
> +
> + {{{
> + [
> +     {"id": "0", "rev": "3682408536"},
> +     {"id": "1", "rev": "3206753266"},
> +     {"id": "2", "error": "conflict", "reason": "Document update  
> conflict."}
> + ]
> + }}}
>
> === Database File Format ===

I'm not sure this change is intentional. Damien, Chris?

I'd opt for a full JSON object. Not all client libs like parsing JSON  
partials.

Cheers
Jan
--



Re: [Couchdb Wiki] Update of "Breaking changes" by SvenHelmberger

Posted by Chris Anderson <jc...@apache.org>.
On Sat, Mar 21, 2009 at 1:09 PM, Jan Lehnardt <ja...@apache.org> wrote:
>
> On 21 Mar 2009, at 11:38, Apache Wiki wrote:
>>
>>
>> == Changes Between 0.8.x and 0.9.0pre ==
>> +
>> + === Response to Bulk Creation/Updates ===
>> +
>> + The response to a bulk creation / update now looks like this
>> +
>> + {{{
>> + [
>> +     {"id": "0", "rev": "3682408536"},
>> +     {"id": "1", "rev": "3206753266"},
>> +     {"id": "2", "error": "conflict", "reason": "Document update
>> conflict."}
>> + ]
>> + }}}
>>
>> === Database File Format ===
>
> I'm not sure this change is intentional. Damien, Chris?
>
> I'd opt for a full JSON object. Not all client libs like parsing JSON
> partials.
>

The JSON spec allows objects or arrays as the outer member. http://www.json.org/

As long as it's documented I don't see a problem here.

-- 
Chris Anderson
http://jchris.mfdz.com