# NOT RUN {
# Parse escaped unicode
parse_json('{"city" : "Z\\u00FCrich"}')
# big integers
big_num <- "9007199254740993"
as.character(parse_json(big_num, bigint_as_char = FALSE))
as.character(parse_json(big_num, bigint_as_char = TRUE))
# NA error by default
try(parse_json(NA))
# ... but one can specify a default value
parse_json(NA, .na = data.frame(a = 1, b = 2))
# input of size 0
parse_json(NULL)
parse_json(character(), .null = data.frame(a = 1, b = 2))
# }
Run the code above in your browser using DataLab