From: Inderjeet Singh <inder...@gmail.com>
Date: Wed, 25 Jul 2012 13:49:51 -0700 (PDT)
Local: Wed, Jul 25 2012 4:49 pm
Subject: Re: [google-gson:1735]: Re: Exclusion on Value. (Kind of ExclusionStrategy)
Can you file a feature request on the Gson project page with the following Thanks On Thursday, July 19, 2012 1:45:15 PM UTC-7, Jean-Marc Spaggiari wrote:
> I like options 1 and 3. > I think the 3rd one will really be a good enhancement. > Regarding the efficiency, if those data has to be transfered over a > For now, what I'm doing is "simply" parsing the output string to > 2012/7/19, Maaartin <maaarti...@gmail.com>: > > +1, that's what I just wanted to ask. My case is nearly the same, except > > On Friday, July 13, 2012 2:14:55 AM UTC+2, Inderjeet Singh wrote: > > Concerning the efficiency I beg to differ. Sure, excluding fields on the > > do an additional check if a field not-excluded on the per-class bases > > be excluded based on its value. > >> BTW, You can write a custom type adapter for MyData that excludes > > I'd strongly prefer something like > > class MyData { > > or maybe > > class MyData { > > where each value would be tested against the value in defaultInstance, > > @GsonExcludeDefaultValue > > where GSon would determine the default values by deserializing an object > > -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||