title: MalformedJsonException when parse a string in java
body: <p>I have this string that represents a student entity:</p>
  
  <pre><code>{\"firstName\":\"Pirlog\",\"lastName\":\"Marcel\",\"year\":3,\"grupa\":\"B4\",\"accountId\":\"c9e4b165-8fdd-4ca2-974e-9b598ddb52bc\",\"id\":\"e577cf18-53bb-4e4e-bce2-b543f1d51f85\"}
  </code></pre>
  
  <p>The Student entity class is:</p>
  
  <pre><code>public class Student implements Serializable {
      private String firstName;
      private String lastName;
      private int year;
      private String grupa;
      private UUID accountId;
      private UUID id;
  
      public Student(){
  
      }
  
      public Student(String firstName, String lastName, int year, String grupa, String accountId, String id){
          this.id = UUID.fromString(id);
          this.firstName = firstName;
          this.lastName = lastName;
          this.year = year;
          this.grupa = grupa;
          this.accountId = UUID.fromString(accountId);
      }
  }
  </code></pre>
  
  <p>For parse the string I use this code:</p>
  
  <pre><code>Gson g = new Gson();
  String p = g.toJson(response1);
  Student s = g.fromJson(p.substring(1, p.length() - 1), Student.class);
  System.out.println(s.toString());
  </code></pre>
  
  <p>response1 is a httpresponse's body and it represents my string from description.</p>
  
  <p>Exception:</p>
  
  <pre><code>Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 1 column 2 path $.
      at com.google.gson@2.8.6/com.google.gson.Gson.fromJson(Gson.java:947)
      at com.google.gson@2.8.6/com.google.gson.Gson.fromJson(Gson.java:897)
      at com.google.gson@2.8.6/com.google.gson.Gson.fromJson(Gson.java:846)
      at com.google.gson@2.8.6/com.google.gson.Gson.fromJson(Gson.java:817)
      at Marcel/Marcel.controllers.uicontrollers.LoginScreenController.LoginFunction(LoginScreenController.java:42)
  </code></pre>