File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 507
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 36497
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
xml-josn object or string
jquery with json
JQuery Grid
How to build and pass JSON objects back to a server?
Struts 2 and JSON