title: Issues with using Gson to pretty-print JSON String
body: <p>Could someone please suggest why this is happening...</p>
  
  <p>I’ve got some code to pretty print some JSON. To do this, I am making use out of the <a href="https://sites.google.com/site/gson/gson-user-guide" rel="noreferrer">Gson library</a>. </p>
  
  <p>However, while thus usually works well, some characters don’t seem to be displayed properly. Here is a simple piece of code that demonstrates the problem:</p>
  
  <pre><code>//Creating the JSON object, and getting as String:
  JsonObject json = new JsonObject();
  JsonObject inner = new JsonObject();
  inner.addProperty("value", "xpath('hello')");
  json.add("root", inner);
  System.out.println(json.toString());
  
  //Trying to pretify JSON String:
  Gson gson = new GsonBuilder().setPrettyPrinting().create();
  JsonParser parser = new JsonParser();
  JsonElement je = parser.parse(json.toString());
  System.out.println(gson.toJson(je));
  </code></pre>
  
  <p>The output of the above code is:</p>
  
  <pre><code>{"root":{"value":"xpath('hello')"}}
  {
    "root": {
      "value": "xpath(\u0027hello\u0027)"
    }
  }
  </code></pre>
  
  <p>How could I fix the above?</p>