title: Receiving JSON in salesforce
body: <p>I am trying to receive a JSON string in salesforce by converting a blob in the body of an Http request. However, when I convert the blob to a string there are \ characters that get inserted into the request which prevents me from parsing.</p>
  
  <p>I then tried to take the string and remove all \ characters... that didn't work either.</p>
  
  <pre><code>RestRequest req = RestContext.request;
      Blob jsonBlob = req.requestBody;
      String jsonString = jsonBlob.toString();
      return jsonString;
  </code></pre>
  
  <p>The original string (the one that is received as a blob) looks like this:</p>
  
  <pre><code>{"putTimeCard":{"timecard":{"timeCardID": "","employeeID": ""}}
  </code></pre>
  
  <p>And after converting to a salesforce string and assigned to the jsonString is altered to:</p>
  
  <pre><code>{\"putTimeCard\":{\"timecard\":{\"timeCardID\": \"\",\"employeeID\": \"\"}}
  </code></pre>
  
  <p>Has anyone found a solution for this?
  Thanks</p>