title: "{\"error\":\"Invalid command.\"}" How to fix this error? With JSON in R
body: <pre><code>library(httr)
  library(jsonlite)
  library(lubridate)
  
  command = "currencyPair"
  
  url &lt;- paste("https://poloniex.com/public?command=", command, sep = "")
  
  raw.result &lt;- GET(url = url)
  
  # names(raw.result)
  # [1] "url"         "status_code" "headers"     "all_headers" "cookies" "content"     "date"        "times"      
  # [9] "request"     "handle"     
  
  # head(raw.result$content)
  # [1] 7b 22 65 72 72 6f
  
  this.raw.content &lt;- rawToChar(raw.result$content)
  
  # this.raw.content
  # [1] "{\"error\":\"Invalid command.\"}"
  </code></pre>
  
  <p>I would like to get the above command into Character form so that I can create a Data.frame. What can I do to fix the error line?</p>