incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: json referencing using private member
Date Wed, 14 Oct 2009 16:46:25 GMT
On Wed, Oct 14, 2009 at 9:43 AM, Norman Barker <norman.barker@gmail.com> wrote:
> Hi,
>
> I am using JSON referencing in couchdb and the input is XML (which I
> am turning into JSON).
>
> An immediate problem is that by taking a JSON object out of CouchDB is
> that you don't know the name of the corresponding XML root element.
>
> e.g. "RootName" : {"$ref" : "123"}, where document corresponding
> object to "123" contains the child elements of RootName.
>
> Using private CouchDB JSON notation, similar to _id, _rev, I would
> like to use _parent to specify the parent root name.
>
> Is this safe, is there a list of reserved words in couchdb?
>

All top-level keys starting with _underscore are reserved.

> thanks,
>
> Norman
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message