Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A9FBF6251 for ; Wed, 13 Jul 2011 14:05:41 +0000 (UTC) Received: (qmail 35986 invoked by uid 500); 13 Jul 2011 14:05:41 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 35940 invoked by uid 500); 13 Jul 2011 14:05:40 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 35932 invoked by uid 99); 13 Jul 2011 14:05:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 14:05:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of grobmeier@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 14:05:33 +0000 Received: by iyi20 with SMTP id 20so8327055iyi.35 for ; Wed, 13 Jul 2011 07:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=pu+5w3covMqOoHXhGnZ7IMJ4P1ZuI2IpGu51jCoKwZA=; b=Z16D2a8WHrcUOJeDfptJxL/qjaf3ALA4s7Y0tm7cqfwaVfQIyGQdud5S1S0vUonUxg qhZQgYsCdY7FHYdLFHzvOTUEB/Y4pCoKkb3Em8/OeNa3OPInHiJTOCFITZQLQUhQII2n J11+UOa3rFsTO6SSet7bSq6DnzW0psCaTLV+s= Received: by 10.42.153.134 with SMTP id m6mr1150652icw.386.1310565912089; Wed, 13 Jul 2011 07:05:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.180.4 with HTTP; Wed, 13 Jul 2011 07:04:52 -0700 (PDT) In-Reply-To: References: <4E187509.3080201@Newfield.org> <4E1911EF.5000603@Newfield.org> <4E19E3FC.5050006@Newfield.org> <34BFEEA9-DB38-46A0-A4E0-C7853C3E2DA2@it-neering.net> <4E1D944A.40506@Newfield.org> From: Christian Grobmeier Date: Wed, 13 Jul 2011 16:04:52 +0200 Message-ID: Subject: Re: Comments in JSON To: Struts Developers List , lukasz.lenart@gmail.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2011/7/13 =C5=81ukasz Lenart : > 2011/7/13 Dave Newton : >> On Wed, Jul 13, 2011 at 9:08 AM, Christian Grobmeier wrote: >>> For the default value I would just avoid "application" before the >>> slash, because I have experienced that the file is downloaded then. >>> This cannot be easily spotted if you have jquery as a frontend. >>> Anything with "text/" before the slash is acceptable >> >> Except that "application/json" is actually the standard as per RFC >> 4627... *sigh* >> >> I'm irritated that a bunch of non-text stuff got wedged under text/*, >> but not much to be done about it now, I suppose. Even the usual "be >> strict when sending, loose when receiving" doesn't really work :/ > > I think, it's just in case of wrapped in comments JSON ... Exact. Because with comments it cannot be treated as application/json --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org