title: converting JSON object in R to string representation gives \" rather than ". How to get rid of slash?
body: <p>I need to get ride of the forward slash when converting a JSON object to a string. Why do I get \" rather than the double quote, and how can I show as just a double quote with the slash? Consider the example, d_json without slash, but slash appears when converted to string:</p>
  
  <pre><code>library(jsonlite)
  d = data.frame(one=as.factor(c('a','a','b','b','c','c')),
             two=c(1,2,3,4,5,6))
  
  d_json &lt;- toJSON(d)
  d_json
  ##[{"one":"a","two":1},{"one":"a","two":2},{"one":"b","two":3},{"one":"b","two":4},{"one":"c","two":5},{"one":"c","two":6}] 
  
  toString(d_json)
  ##[1] "[{\"one\":\"a\",\"two\":1},{\"one\":\"a\",\"two\":2},{\"one\":\"b\",\"two\":3},{\"one\":\"b\",\"two\":4},{\"one\":\"c\",\"two\":5},{\"one\":\"c\",\"two\":6}]"
  </code></pre>