Checks whether a file is a JSON file.

is_json(file)

Arguments

file

a filepath

Value

a boolean

Examples

if (FALSE) { # \dontrun{
is_json("file.json")
} # }