Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
like javascript has stringify() & parse() for convert objects java has parse() and..., OR serialization methods, what?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64971
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java does not have JSON support built in; you'll need a 3rd-party library for that. Some popular ones: Gson, Jackson, Stringtree...
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what about serialization methods of java to write objects in permanent file storage?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64971
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic