Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F3DC109CB for ; Thu, 23 Jan 2014 14:21:19 +0000 (UTC) Received: (qmail 61153 invoked by uid 500); 23 Jan 2014 14:21:13 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 61113 invoked by uid 500); 23 Jan 2014 14:21:13 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 61103 invoked by uid 99); 23 Jan 2014 14:21:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jan 2014 14:21:12 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of steven@actual-systems.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jan 2014 14:21:06 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1W6L9C-0000k8-3s for solr-user@lucene.apache.org; Thu, 23 Jan 2014 06:20:46 -0800 Date: Thu, 23 Jan 2014 06:20:46 -0800 (PST) From: stevenNabble To: solr-user@lucene.apache.org Message-ID: <1390486845114-4112990.post@n3.nabble.com> Subject: Solr solr.JSONResponseWriter not escaping backslash '\' characters MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, I am finding that if any fields in a document returned by a Solr query (*wt=json* to get a JSON response) contain backslash *'\'* characters, they are not being escaped (to make then valid JSON). e.g. Solr returns this: 'A quoted value *\"XXX\"*, plus these are backslashes *\r\n* which should be escaped but aren't :-(' Any ideas? I shouldn't need to escape these values before submitting to the Solr index but I can't see any other way at the moment... Regards Steven -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-solr-JSONResponseWriter-not-escaping-backslash-characters-tp4112990.html Sent from the Solr - User mailing list archive at Nabble.com.