This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes like javascript has stringify() and parse() for convert objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "like javascript has stringify() and parse() for convert objects" Watch "like javascript has stringify() and parse() for convert objects" New topic
Author

like javascript has stringify() and parse() for convert objects

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
like javascript has stringify() & parse() for convert objects java has parse() and..., OR serialization methods, what?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63053
    
  69

Java does not have JSON support built in; you'll need a 3rd-party library for that. Some popular ones: Gson, Jackson, Stringtree...


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
what about serialization methods of java to write objects in permanent file storage?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63053
    
  69

Object serialization is very different from transfer formats such as JSON. Which are you talking about? The JavaScript examples you cited are examples of data formats, not serialization.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: like javascript has stringify() and parse() for convert objects
 
jQuery in Action, 3rd edition