You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Stanley, Eric" <Er...@qwest.com> on 2010/03/08 22:26:54 UTC

JSON not serializing all members of my object...

All, running latest and greatest S2, and trying to convert a

HashMap<String, ArrayList<ProjectManager>>

To a JSON result. its all setup right, and it is serializing, but it always sets 2 of the members in the ProjectManager List objects to null. The members are Strings, one containing a phone number, and the other containing an email address. I have triple checked that the action is properly populating the HashMap. And again, it does serialize everything but the email and tn.



The only thing I can think of is that the email and TN contain the '+' and the '@'<mailto:'@'> characters, and the JSON code is choking on them. I set these 2 fields manually in the code to test that, but it still does not serialize them. Is there a debugging setting I can turn on for JSON? I dont get any errors to point me in the right direction. Any help is appreciated :)

-Ryan

________________________________
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.