incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Barker <norman.bar...@gmail.com>
Subject invalid json allowed into couch
Date Sat, 19 Sep 2009 23:11:32 GMT
Hi,

currently if adding documents to couch using the REST api it is
possible to add a document such as

{
  "prop1": "1",
  "prop1": "2"
}

which only displays partially in Futon (skips first property, "prop1":
"1") due to the unique constraints of JSON object properties.

This is actually a good feature, since I am generating invalid JSON
from an event based API, is there a way to add a normalisation
function to the write document operation  (using Erlang ideally) that
would group these properties,  its gets difficult when the documents
are nested but any thoughts appreciated.

Many thanks,

Norman

Mime
View raw message