Write JSON using GSON Streaming

Tutorials Shared by the Internet Community



Write JSON using GSON Streaming - Java Tutorials Corner


  • Total Hits - 27233

  • Total Votes - 24 votes

  • Vote Up - 11 votes

  • Vote Down - 13 votes

  • Domain - www.javatutorialcorner.com

  • Category - JAVA/Core JAVA

  • Submitted By - Appu T

  • Submitted on - 2014-03-16 09:36:36


Gson can read and write JSON as an object model or stream.Gson’s object model uses the same approach as XML DOM and XML pull parser.Gson doesn’t support event-based model like SAX.Streaming AccessJsonReader and JsonWriter class provides Streaming access to JSON document which were added in GSON 1.6. These classes operate on a JSON document as sequence of tokens that are traversed in depth-first order. Because the streams operate on one token at a time.Most application uses Object model API. JSON Streaming is useful in following casesWhen it is... - See more at: http://www.javatutorialcorner.com/search/label/Java?updated-max=2013-11-09T21:27:00-08:00&max-results=20&start=20&by-date=false ...

Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down