title: Why Gson parses invalid Json string?
body: <p>As per JSON spec, \ in string must be escaped (i.e, \\) otherwise its <a href="http://jsonlint.com/" rel="nofollow">invalid JSON</a>.
  Gson assumes "\apple" is equal to "apple" without raising an Exception. Why does it ? </p>
  
  <pre><code>public class MainApp {
  
  public static void main(String[] args) {
      String str = "{\"bar\":\"\\apple\"}";
      /*
          str without escaping = 
          {
              "bar" : "\apple"
          }
      */
  
      Foo foo = new Gson().fromJson(str, Foo.class);
      System.out.println("In Json = " + "\\" + "apple");
      System.out.println("In Pojo = " + foo.getBar());
  }
  
  class Foo {
      private String bar;
      //Setter and getters stripped
  }
  }
  </code></pre>
  
  <p>Output: </p>
  
  <pre><code> In Json = \apple
   In Pojo = apple
  </code></pre>
  
  <p>It happens only with first character and with 'a'. Whats special in it?</p>