title: How to write data into text file in Json format for Spring MVC framework
body: <p>I wanted write some data for a class like that </p>
  
  <pre><code>package com.sample.story.model;
       public class Story {   
              private String storyTitle;
              private String storyBody;
              private String storyAuthor;
                 // getter setter method inculded
          }
  </code></pre>
  
  <p>I pass data from view controller.Now i want to write those data into a text file in Json format.where i should locate the text file how to store it as Json format.I created a file in servletcontext but i don,t know how read data from there .please help me to solve this problem .Thanks in advance.</p>