title: Gson MalformedJsonException on slash
body: <p>I am trying to deserialize a class with Gson.</p>
  
  <p>This is the class I am trying to deserialize :</p>
  
  <pre><code>public class Product {
  
      public String id;
      public String name;
      public String expDate;
      public String iconPath;
  
      public Product(final String id, final String name, final String expDate, final String iconPath) {
          this.id = id;
          this.name = name;
          this.expDate = expDate;
          this.iconPath = iconPath;
      }
  
      @Override
      public final String toString() {
          return new Gson().toJson(this);
      }
  
  }
  </code></pre>
  
  <p>And this is the code used :</p>
  
  <pre><code>final String serializedProducts = PreferenceManager.getDefaultSharedPreferences(activity).getString("products_" + sectionNumber, null);
  if(serializedProducts != null) {
      final Gson gson = new GsonBuilder().create();
      final List&lt;?&gt; deserializedProducts = gson.fromJson(serializedProducts, List.class);
      final List&lt;Product&gt; result = new ArrayList&lt;Product&gt;();
      for(final Object product : deserializedProducts) {
          //System.out.println(product.toString());
          result.add(gson.fromJson(product.toString(), Product.class));
      }
  }
  </code></pre>
  
  <p>And this is the output of <code>System.out.println(...)</code> :</p>
  
  <pre><code>{expDate=4/6/2014, iconPath=/data/data/fr.skyost.fridge/files/images/5000112558265, id=5000112558265, name=Coca-Cola Zéro}
  
  {expDate=4/6/2014, iconPath=/data/data/fr.skyost.fridge/files/images/5000112558265, id=5000112558265, name=Coca-Cola Zéro}
  
  {expDate=4/6/2014, iconPath=/data/data/fr.skyost.fridge/files/images/3564700371107, id=3564700371107, name=Eau minérale}
  </code></pre>
  
  <p>I am having an exception <code>MalformedJsonException</code> at line 1, column 12 (the slash).</p>
  
  <p>So how can I proceed to deserialize it ?</p>
  
  <p>Thanks ;)</p>