title: How to remove special characters from JSON stream, so that I can use gson API to convert JSON objects to JAVA objects?
body: <p>I am trying to use Google gson API to serialize JSON objects to java objects.
  I need to remove special characters from this stream for the serialization. 
  How do I achieve this?</p>
  
  <p>This is the JSON object I get from the request:</p>
  
  <p>{"color":"Arctic White","imageUrl":"http://www.xyz.com/images/z/1/7/8/8/2/1/1788212-p-DETAILED.jpg","styleId":"1788212","originalPrice":"$64.95","price":"$64.95","productUrl":"http://www.xyz.com/product/7515478/color/51609","percentOff":"0%"}</p>
  
  <p>However, when I try to use Google's gson API to deserialize it to JAVA object- it needs JSON object without any special characters and hence it throws an exception when it encounters '$' and '%'. How can I get rid of these characters without affecting rest of the json object  i.e. json result obtained as a string.</p>