How to Convert Object to JSON String using GSON

Tutorials Shared by the Internet Community


  Top Tutorials     New Tutorials     Submit     Login     Register  

How to Convert Object to JSON String using GSON

How to Convert Object to JSON String using GSON
  • Total Hits: 5425

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating


  • Total Votes: 10 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2014-03-16 09:39:31

  • Submitted By: Appu T

  • Set as Favorite


JSON – JavaScript Object Notation.JSON is the simple, easy and lightweight framework for data exchange.It is good replacement for XML format StringGSON GSON is java library for create JSON String. It was created for use inside Google, now its widely used by many applicationsIn this Tutorials we are going to see how to convert Java object to JSON String using GSON library.1. Create project called JSONExample. 2. Create package called com.javatutorialscorner.gson 3. Create java class called GsonPojo under com.javatutorialscorner.gson. - See more at:    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 20%  2
 Two starsTwo star  Vote LeftVote MiddleVote Right 20%  2
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 20%  2
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 20%  2
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 20%  2

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.