Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6B416AE0 for ; Wed, 1 Jun 2011 13:10:44 +0000 (UTC) Received: (qmail 6198 invoked by uid 500); 1 Jun 2011 13:10:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 6161 invoked by uid 500); 1 Jun 2011 13:10:43 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 6153 invoked by uid 99); 1 Jun 2011 13:10:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 13:10:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebastiancohnen@googlemail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 13:10:35 +0000 Received: by bwj24 with SMTP id 24so46868bwj.11 for ; Wed, 01 Jun 2011 06:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=RUBZrH8hS0KqaX7G/qjI0gkcRzPEd+OiEQisna9nJ4Y=; b=oBjq3Yt2RzW6QiUcJWE6K/fMhR8Jjr6QMQeQkfiRk/yVIbLbFsqCVooMKSxoY2kN9b Nhsjhw1hRv2CAGfoTcP0+j6uomLLRQnsC4qCTRqbgfABP3vhe0/NqN18GiqJGgpccUGx q6VwGJtwBk6yutu1BxL3Hq+GqtWHqKr22aKYk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=BwzKH5XdgtJUOc8KcpwNc6KxqXp+wOjiS74OiY9uELpdL1ul0r1dEO5WnEl0a/iDgC ITinIOK7FzTRxsqinXPxnwg5bK/RsQj5UB1iAHqr1WR+O1F5eZFdUBJR90ELVaATfY31 Kv1p2xzCtgqnlJHqyJ1DLiFZtAQNCLUdhCFGs= Received: by 10.204.20.142 with SMTP id f14mr5024927bkb.155.1306933815289; Wed, 01 Jun 2011 06:10:15 -0700 (PDT) Received: from [192.168.178.21] (koln-5d814b2b.pool.mediaWays.net [93.129.75.43]) by mx.google.com with ESMTPS id l24sm845540bkw.15.2011.06.01.06.10.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 06:10:14 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: couchdb modify the json object From: Sebastian Cohnen In-Reply-To: Date: Wed, 1 Jun 2011 15:10:13 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Hi Sujan, what are you expecting? curl -H "Content-Type: application/json" -X POST = "http://localhost:5984/test" -d = '{"createddate":"\\/Date(-684302343434)\\/"}' # -> = {"ok":true,"id":"496da5f24ef4d4c11f80b8b22e0004e8","rev":"1-1b46cd563ef2dc= ca42c5e9f45de8c308"} curl -X GET http://localhost:5984/test/496da5f24ef4d4c11f80b8b22e0004e8 # -> = {"_id":"496da5f24ef4d4c11f80b8b22e0004e8","_rev":"1-1b46cd563ef2dcca42c5e9= f45de8c308","createddate":"\\/Date(-684302343434)\\/"} On 01.06.2011, at 14:56, Sujan Dutta wrote: >=20 > I am new to couchdb and i have a problem now >=20 > well i have a date field which i am putting it as >=20 > "createddate":"\\/Date(-684302343434)\\/" >=20 > but it is storing in doc as=20 >=20 > "createddate":"/Date(-684302343434)/" >=20 > how do i could solve this problem ? > =20