This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Author

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
samir
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 540
Hello,
Look at JSON JAVA APIS.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43993
    
  33
Too difficult a question for "beginning". Moving thread.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to convert any java POJO in JSON
 
It's not a secret anymore!