title: How to get additional fields in a json data in GSON
body: <p>I have a JSON object which is actually a java object serialized. The JSON object is something like this</p>
  
  <pre><code>{
    user: 'user',
    telephone: '123456789'
  }
  </code></pre>
  
  <p>The java object's <strong>telephone</strong> field was renamed from 'telephone' to 'mobile'. So now the java object is has following fields.</p>
  
  <ul>
  <li>user</li>
  <li>mobile</li>
  </ul>
  
  <p>What i want to do is a data migration. I want to get the data from the database as a JSON string -> and parse that JSON to java object using GSON (So far we are used gson.fromJson(class, data) method) <strong>preserving</strong> the value in the telephone (since telephone is not a field in the java class now) - so then i can pass that data to the new field (mobile).</p>
  
  <p>How can i do this? </p>
  
  <p>P.S. :- This cannot achieve by some simple database query because we are using a file storage system which don't have query facility and encoded values.</p>
  
  <p>P.S. :- Also, we are using the <strong>entity event framework</strong></p>