title: JSON parsing using Gson for Java
body: <p>I would like to parse data from JSON which is of type <code>String</code>.
  I am using <a href="http://code.google.com/p/google-gson/">Google Gson</a>.</p>
  
  <p>I have:</p>
  
  <pre><code>jsonLine = "
  {
   "data": {
    "translations": [
     {
      "translatedText": "Hello world"
     }
    ]
   }
  }
  ";
  </code></pre>
  
  <p>and my class is:</p>
  
  <pre><code>public class JsonParsing{
  
     public void parse(String jsonLine) {
  
        // there I would like to get String "Hello world"
  
     }
  
  }
  </code></pre>