title: Remove double quotes json created using toJSON
body: <p>I use the function <code>toJSON</code> like this to create a json:</p>
  
  <pre><code>data&lt;-toJSON(list("tablename"= unbox("test.csv"),
                    "header" = header_df,
                    "data" = test1
  ))
  </code></pre>
  
  <p>the result is the following:</p>
  
  <p>data</p>
  
  <pre><code>{"tablename":"test.csv","header":["PassengerId","Pclass","Name","Sex","Age","SibSp","Parch","Ticket","Fare","Cabin","Embarked"],"data":[["892","3","Kelly, Mr. James","male","34.5","0","0","330911","7.8292","","Q"]]}
  </code></pre>
  
  <p>The problem is that it is adding double quotes for the <code>PassengerID</code> and the <code>Age</code> numbers. If I modify manually the JSON to this:</p>
  
  <pre><code>data&lt;-'{"tablename":"test.csv","header":["PassengerId","Pclass","Name","Sex","Age","SibSp","Parch","Ticket","Fare","Cabin","Embarked"],"data":[[892,"3","Kelly, Mr. James","male",34.5,"0","0","330911","7.8292","","Q"]]}'
  </code></pre>
  
  <p>then it is working fine. How can I remove the double quotes of some elements in the JSON when creating the JSON?</p>
  
  <p>You can find the input data here: </p>
  
  <p>Hi, you can find it here <a href="https://www.dropbox.com/s/snr0jjmra9c4l8g/test.csv?dl=0" rel="nofollow">link</a> I use the following to load it</p>
  
  <pre><code>test &lt;- read.csv("~/Titanic R/test.csv")
  header_df&lt;-names(test)
  test&lt;-test[1,]
  test1&lt;-as.matrix(test)
  </code></pre>