It's not a secret anymore!*
The moose likes Spring and the fly likes How to convert any java POJO in JSON Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply locked New topic

How to convert any java POJO in JSON

samir ware
Ranch Hand

Joined: Jul 27, 2005
Posts: 192
Hello Ranchers,
Can anyone please let me know how can I convert any POJO to JSON string ? Is there any restriction on POJO to get it converted to JSON ?
Thanks in advance
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 511
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37950
Too difficult a question for "beginning". Moving thread.
I agree. Here's the link:
subject: How to convert any java POJO in JSON
Similar Threads
jquery with json
xml-josn object or string
Struts 2 and JSON
How to build and pass JSON objects back to a server?
JQuery Grid