incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <>
Subject Re: bulk update failing when document has attachments?
Date Thu, 12 Dec 2013 01:22:47 GMT

On Dec 11, 2013, at 5:27 AM, Robert Newson <> wrote:

> forward slash is a
> Unicode-character-except-"-or-\-or-control-character. The picture does
> show that you *can* escape a forward slash with \/ but the 'any' track
> allows an unescaped forward slash.

+1. The only printing characters that _have_ to be escaped in JSON strings are double-quotes
and backslashes.

IIRC, escaping slashes is a thing to prevent JavaScript code inside an HTML <script>
element from possibly being misinterpreted as a closing HTML tag. It serves no purpose if
the string is not going to be placed inside HTML, and it’s got nothing to do with JSON.

View raw message