Skip to content

Commit

Permalink
Merge pull request #12 from Nicolaidavies/patch-1
Browse files Browse the repository at this point in the history
Pass auto_unbox as a variable to json function
  • Loading branch information
bart6114 committed Feb 23, 2017
2 parents f6992a5 + f8e8c1d commit dc95600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/response.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Response<-
self$body<-body
}
},
json=function(obj){
self$body<-jsonlite::toJSON(obj, auto_unbox = TRUE)
json=function(obj, auto_unbox = TRUE){
self$body<-jsonlite::toJSON(obj, auto_unbox=auto_unbox)
self$content_type("application/json")
},
text=function(text){
Expand Down

0 comments on commit dc95600

Please sign in to comment.