title: JSONObject contains escape characters
body: <p>I'm building a simulator to post JSON data to a service I'm running.</p>
  
  <p>The JSON should look like this:</p>
  
  <pre><code>{"sensor":
         {"id":"SENSOR1","name":"SENSOR","type":"Temperature","value":100.12,"lastDateValue":"\/Date(1382459367723)\/"}
  }
  </code></pre>
  
  <p>I tried this with the "Advanced REST Client" in Chrome and this works fine. The date get's parsed properly by the ServiceStack webservice.</p>
  
  <p>So, the point is to write a sensor simulator that posts data like this to the web service.</p>
  
  <p>I created this in Java, so I could run it on my raspberry pi.</p>
  
  <p>This is the code:</p>
  
  <pre><code>    public static void main(String[] args) {
  
      String url = "http://localhost:63003/api/sensors";
      String sensorname = "Simulated sensor";
      int currentTemp = 10;
      String dateString = "\\" + "/Date(" + System.currentTimeMillis() + ")\\" + "/";
      System.out.println(dateString);
  
      System.out.println("I'm going to post some data to: " + url);
  
      //Creating the JSON Object
      JSONObject data = new JSONObject();
      data.put("id", sensorname);
      data.put("name", sensorname);
      data.put("type", "Temperature");
      data.put("value", currentTemp);
      data.put("lastDateValue", dateString);
      JSONObject sensor = new JSONObject().put("sensor",  data);
  
      //Print out the data to be sent
      StringWriter out = new StringWriter();
      sensor.write(out);
  
      String jsonText = out.toString();
      System.out.print(jsonText);
  
      //Sending the object
      HttpClient c = new DefaultHttpClient();
      HttpPost p = new HttpPost(url);
      p.setEntity(new StringEntity(sensor.toString(), ContentType.create("application/json")));
  
      try {
          HttpResponse r = c.execute(p);
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>The output of this program is as follows:</p>
  
  <pre><code>\/Date(1382459367723)\/
  I'm going to post some data to: http://localhost:63003/api/sensors
  {"sensor":{"lastDateValue":"\\/Date(1382459367723)\\/","id":"Simulated sensor","name":"Simulated sensor","value":10,"type":"Temperature"}}
  </code></pre>
  
  <p>The issue here is that the JSONObject string still contains these escape characters. But when I print the string in the beginning it does not contain the escape characters. Is there any way to get rid of these? My service can't parse these..</p>
  
  <p>This is a sample of what I send with the rest client in chrome:</p>
  
  <pre><code> {"sensor":{"id":"I too, am a sensor!","name":"Willy","type":"Temperature","value":100.12,"lastDateValue":"\/Date(1382459367723)\/"}}
  </code></pre>