incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dale Ragan" <dale.ra...@sinesignal.com>
Subject Re: definitive guide show examples don't work
Date Tue, 10 Aug 2010 18:15:16 GMT
If you have quotes inside quotes, you have to escape them:

i.e. "He said, \"To take out the garbage\"."

> okay worked if i changed all the double quotes to single quotes.
>
>
>
>
>
>
>
> -----Original Message-----
> From: Randall Leeds <randall.leeds@gmail.com>
> To: user@couchdb.apache.org
> Sent: Tue, Aug 10, 2010 10:37 am
> Subject: Re: definitive guide show examples don't work
>
>
> Put it in quotes?
>
>
>
> On Aug 10, 2010 10:17 AM, <whimsica@aol.com> wrote:
>
>
>
>
>
>
>
>
>
>  In the definitive guide I am supposed to be able to paste this in for a
>
> show
>
>
>
>
>
> function(doc, req) {
>
>  return {
>
>    base64 :
>
>      ["iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAsV",
>
>        "BMVEUAAAD////////////////////////5ur3rEBn////////////////wDBL/",
>
>        "AADuBAe9EB3IEBz/7+//X1/qBQn2AgP/f3/ilpzsDxfpChDtDhXeCA76AQH/v7",
>
>        "/84eLyWV/uc3bJPEf/Dw/uw8bRWmP1h4zxSlD6YGHuQ0f6g4XyQkXvCA36MDH6",
>
>        "wMH/z8/yAwX64ODeh47BHiv/Ly/20dLQLTj98PDXWmP/Pz//39/wGyJ7Iy9JAA",
>
>        "AADHRSTlMAbw8vf08/bz+Pv19jK/W3AAAAg0lEQVR4Xp3LRQ4DQRBD0QqTm4Y5",
>
>        "zMxw/4OleiJlHeUtv2X6RbNO1Uqj9g0RMCuQO0vBIg4vMFeOpCWIWmDOw82fZx",
>
>        "vaND1c8OG4vrdOqD8YwgpDYDxRgkSm5rwu0nQVBJuMg++pLXZyr5jnc1BaH4GT",
>
>        "LvEliY253nA3pVhQqdPt0f/erJkMGMB8xucAAAAASUVORK5CYII="].join(''),
>
>    headers : {
>
>      "Content-Type" : "image/png"
>
>    }
>
>  };
>
> }
>
>
>
> But it says invalid json string
>
> and won't accept it.
>
>
>
> How do I get this to work?
>
>
>
> Dan
>
>
>
>



Mime
View raw message