users@jersey.java.net

Re: [Jersey] How to serialize null property

From: <amsmota_at_gmail.com>
Date: Thu, 23 Apr 2009 09:28:46 +0000

You can use your own NullObject, or use one of the many out there, that
basically are obejcts with a

String toString(){
return "null";
}

But I don't know much about json, however...

On Apr 22, 2009 6:00pm, "Patel, Sanjay" <sapatel_at_nemours.org> wrote:
> The object that I am serializing has some properties which are null

> sometime. I want to see {...,"property":null,...} instead of not seeing

> it in generated json.





> ---------------------------------------------------------------------

> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net

> For additional commands, e-mail: users-help_at_jersey.dev.java.net