A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Java in General
Problem with JSONSerializer.toJSON
Joined: Jul 21, 2010
Sep 09, 2011 01:33:02
Firstly I apologize if I'm posting in a wrong section of the forum.
I have JSONObject object = (JSONObject)JSONSerializer.toJson(obj) ;
which works fine when my 'obj' doesn't have values for fields of type
But when values for these timestamp field are set, it is throwing "InvocationTargetException".
I'm using net.sf.json library of version 2.0.
Can some one help please?
Joined: Oct 27, 2005
Sep 09, 2011 09:10:18
Can you post the results of the following two lines when you catch that
// assuming e is the exception e.printStackTrace(); e.getTargetException().printStackTrace();
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Don't get me started about those stupid
subject: Problem with JSONSerializer.toJSON
JSON Syntax error
How can i pass the JSONObject to the servlet
how to, JSON data
Searching google images from java code
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014