Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 828B3200B2D for ; Thu, 16 Jun 2016 11:50:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 816C3160A60; Thu, 16 Jun 2016 09:50:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A6D71160A51 for ; Thu, 16 Jun 2016 11:49:59 +0200 (CEST) Received: (qmail 91980 invoked by uid 500); 16 Jun 2016 09:49:58 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 91970 invoked by uid 99); 16 Jun 2016 09:49:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2016 09:49:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6F6A0C33C0 for ; Thu, 16 Jun 2016 09:49:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id FT0-evKXSbLU for ; Thu, 16 Jun 2016 09:49:56 +0000 (UTC) Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 34A0B5F1F4 for ; Thu, 16 Jun 2016 09:49:56 +0000 (UTC) Received: by mail-oi0-f51.google.com with SMTP id w5so60756017oib.2 for ; Thu, 16 Jun 2016 02:49:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=E8851frlBUu2prQxDC2lVSPqj8Sl/tDi9Fv4Wslgi6U=; b=pK8/RrJWXtX8/hj/IqUgLY486xNIM9XYFKiW0SyjGgJ+xfYHW4jBivX+Rz8aSCMxYr sAY5AEgBmXWZxNQv2y4+kjlokTkIi7y3Xy4n7sWxDDW70Ppdaar3lGegiseFFcHVgOhm qYKXpJrkZyQ94hQ6qdzTQlKEJjZCrLd/21XV/MtFOiZy5Kk32Y8zkoYsuafFL2EzmS96 qTvRpZAnbrNrgOQ2vwjlrWQHr2ket3JVO9xk8i/uKMIaaStb8niSxppnlj95ElVElD0H ToIl84EGfLpkENnmANH/JRnV7zepfmzCzdNle7osu+jmYYbu5M4hIMpamr4vxp3yUpS4 I6iQ== 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:cc; bh=E8851frlBUu2prQxDC2lVSPqj8Sl/tDi9Fv4Wslgi6U=; b=L5Fhxey8W0Rzsu49PDTaIWIhzMZIu96BUA0ZhA4RNINM1UxSJWQcr5gJIdnh5Zkynj c1aMIkye3gLNkDG4cVSU3Rditehi4rQMim5Ht/Yu3pTpLtMh+SRns0Cq4Mq6dLAlfyRZ CYxqVv1LxmW8xvk4tuIb+hCqpsGEDs/3Z6wQpkPwIHpkWKqgu1esJGSdOk+16vg+MCt5 ViBNX9zy8X9eTzI89PjfiEAAGLiHeLMFpjI+X020tA0gV1//clXlS57rJkv3yYrSFsmn XSM6wLGumBGvCzzUDaJFfoaw8GAchJhs64LUj7QUv5LbxQ+uIJmUykN/UZpwbXJsVlws x31Q== X-Gm-Message-State: ALyK8tIPshQcnrDDgDCxQLq8s5jNOt7KR9YM9kZY6pqZEJmJDoZfcGMOqoaXoi++Yykv+wrA5cqRGOCjlaXwP8dF X-Received: by 10.202.0.7 with SMTP id 7mr1933260oia.44.1466070595127; Thu, 16 Jun 2016 02:49:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.37.69 with HTTP; Thu, 16 Jun 2016 02:49:25 -0700 (PDT) In-Reply-To: References: From: Pavel Tupitsyn Date: Thu, 16 Jun 2016 12:49:25 +0300 Message-ID: Subject: Re: Change rest-http Java to JSON null transformation logic To: user@ignite.apache.org Cc: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a1137bbea09df6a05356229eb archived-at: Thu, 16 Jun 2016 09:50:00 -0000 --001a1137bbea09df6a05356229eb Content-Type: text/plain; charset=UTF-8 Hi, What if there is an actual string with "null" value? Pavel. On Thu, Jun 16, 2016 at 12:44 PM, Vladislav Pyatkov wrote: > Hello, > > Why do you want this, if you can save full compatibility using custom > serializer for null value (ObjectMapper#setSerializerProvider)? > > On Thu, Jun 16, 2016 at 12:15 PM, Alexey Kuznetsov < > akuznetsov@gridgain.com> wrote: > >> Hi All! >> >> I'm working on migrating from outdated json-lib to Jackson issue >> IGNITE-3277 [1] and found that previous library serialize null strings as >> "" and null objects as "null", for example: >> {"a": "", "b": null} >> >> How about to serialize all values as "null" ? >> In this case we would definitely know that in Java before serialization >> to JSON was really NULL, not empty string. >> >> But this may break compatibility in some cases. >> >> Thoughts? >> >> >> 1. https://issues.apache.org/jira/browse/IGNITE-3277 >> >> -- >> Alexey Kuznetsov >> GridGain Systems >> www.gridgain.com >> > > --001a1137bbea09df6a05356229eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

What if there is an actual string w= ith "null" value?

Pavel.

On Thu, Jun 16, 2016 = at 12:44 PM, Vladislav Pyatkov <vpyatkov@gridgain.com> w= rote:
Hello,
<= div>
Why do you want this, if you can save full compatibility usin= g custom serializer for null value (ObjectMapper#setSerializerProvider)?
<= br>
On Thu, Jun 16, 2016 at 12:15 PM, Alexey Kuzn= etsov <akuznetsov@gridgain.com> wrote:
Hi All!

I'm work= ing on migrating from outdated json-lib to Jackson issue IGNITE-3277 [1] an= d found that previous library serialize null strings as "" and nu= ll objects as "null", for example:
{"a": &quo= t;", "b": null}

How about to serial= ize all values as "null" ?
In this case we would defini= tely know that in Java before serialization to JSON was really NULL, not em= pty string.

But this may break compatibility in so= me cases.

Thoughts?



--001a1137bbea09df6a05356229eb--