parse_json_or_empty {lambdr} | R Documentation |
Since jsonlite::fromJSON(NULL)
and jsonlite::fromJSON("")
return errors,
this function will force a NULL or empty string to be interpreted as
list()
. Otherwise, the output of this function is identical to
fromJSON
.
parse_json_or_empty(json, ...)
json |
character to be interpreted as a JSON |
... |
additional arguments passed to |
list