Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E59D6189EF for ; Sat, 5 Mar 2016 15:38:07 +0000 (UTC) Received: (qmail 84274 invoked by uid 500); 5 Mar 2016 15:38:07 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 84242 invoked by uid 500); 5 Mar 2016 15:38:07 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 84232 invoked by uid 99); 5 Mar 2016 15:38:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Mar 2016 15:38:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1F187C0251 for ; Sat, 5 Mar 2016 15:38:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id akRze14CMM7y for ; Sat, 5 Mar 2016 15:38:06 +0000 (UTC) Received: from mail-io0-f182.google.com (mail-io0-f182.google.com [209.85.223.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8C5435FB08 for ; Sat, 5 Mar 2016 15:38:05 +0000 (UTC) Received: by mail-io0-f182.google.com with SMTP id m184so91725867iof.1 for ; Sat, 05 Mar 2016 07:38:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=KtuAFEHSR0HU1LdrM+mfXsPLpQBHbGx0n941hMwGWS4=; b=nMdKP0gPss58Czb+0R673Wgg6Ad4MhIvElr75ZuX8tq4YM0CjXKGQtbIqz9q/Vv26k h/Ep+FQmse/2vMtc+TRv+Na0WIpAMKZCKVI1lBibjXRJEb6rHE/ioWaKP+RwgVgJUQJu Hd8/1N64ITDr8EPIAdICa1/AZmCXPgcZXaAn7HRD480cLg4+yHVWCE6dbHVLQpqZR6aq PqK21Ba/qVHkTOD+TeBWRr+XCdbBAhAMIL580cksIywn5Bjy7hfkJMFql7eVoSlbVxWS 4LSBV9/8ubB2njvehvVY4a2heNEDRsZlsZO5wsdHRIn6gdKPSvrSc9wNW4CgBmEtLS0K jaEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=KtuAFEHSR0HU1LdrM+mfXsPLpQBHbGx0n941hMwGWS4=; b=EBsxkTNc6HvIL9SA1KOvy9v4jCigSyKiOVJ4We4uc7B8MlfZ7CEz17apep5lxmvHAo ci5r8idA/SxVjXAqXCvlln0q653GHonWed/kk8QSrhsX7wSN2xQIvqHE/BMh1HYWH/th /yoxhP/gYZnJvXMbJBkMw56LAxwzjd0aFRXzfqCKTi/Slq9zAnC8bNV6qMDO2eksbNe2 TKP5+uLMNxCGVuE61EkJnFVbSC4JqFvFmwp6LpsO9g0rECUgK13XsmMQg+W5go3Nv2kz zqTjvTZkUOOZ31n3td2dBJOgUMWgXN+kQVZcV1OL6Hp+hEwFA/MThmpwfC8G4RhUTq3/ mRDA== X-Gm-Message-State: AD7BkJKKNSZVCZagn8Q6pz2Xuj5w7NrfjCxrGWmwPfch9gx8BO7ojSkVleUbNqcZwLL3YbqCnEjWRBoGWrBTVg== X-Received: by 10.107.149.18 with SMTP id x18mr15424019iod.170.1457192279283; Sat, 05 Mar 2016 07:37:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.7.145 with HTTP; Sat, 5 Mar 2016 07:37:39 -0800 (PST) In-Reply-To: <56DAA9B8.3020601@gmx.net> References: <56DAA9B8.3020601@gmx.net> From: Gerald Wiltse Date: Sat, 5 Mar 2016 10:37:39 -0500 Message-ID: Subject: Re: JSONBuilder Option to Only Include NonNull values To: users@groovy.apache.org Content-Type: multipart/alternative; boundary=001a1140fee42d1e12052d4f0463 --001a1140fee42d1e12052d4f0463 Content-Type: text/plain; charset=UTF-8 You got it, thanks for all your hard work on the project! Gerald R. Wiltse jerrywiltse@gmail.com On Sat, Mar 5, 2016 at 4:41 AM, Pascal Schumacher wrote: > Hi Gerald, > > please create an enhancement request for the groovy JSON component at > https://issues.apache.org/jira/browse/GROOVY/component/12326643/ to > request a feature. > > Thanks, > Pascal > > > Am 04.03.2016 um 20:51 schrieb Gerald Wiltse: > > I just found this article which describes the problem perfectly and there > are several good workarounds. > > > http://stackoverflow.com/questions/14749817/exclude-null-values-using-jsonbuilder-in-groovy > > Apparently, it's a native feature of Jackson, which makes me think it's > probably available in lots of JSON API's. > > Any chance this feature could get on the roadmap for JSON Builder (and > slurper for that matter)? > > > > Gerald R. Wiltse > jerrywiltse@gmail.com > > > --001a1140fee42d1e12052d4f0463 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You got it, thanks for all your hard work on the project!<= /div>

Gerald R. Wiltse
jerrywiltse@gmail.com=


On Sat, Mar 5, 2016 at 4:41 AM, Pascal Schum= acher <pascalschumacher@gmx.net> wrote:
=20 =20 =20
Hi Gerald,

please create an enhancement request for the groovy JSON component at https://issues.apache.org/jira/browse/GROOVY/comp= onent/12326643/ to request a feature.

Thanks,
Pascal


Am 04.03.2016 um 20:51 schrieb Gerald Wiltse:
I just found this article which describes the problem perfectly and there are several good workarounds.=C2=A0


Apparently, it's a native feature of Jackson, which makes me think it's probably available in lots of JSON API's.= =C2=A0

Any chance this feature could get on the roadmap for JSON Builder (and slurper for that matter)?



Gerald R. Wiltse
jerrywiltse@gmail.com



--001a1140fee42d1e12052d4f0463--