Checks whether a file is a JSON file.

is_json(file)

Arguments

file

a filepath

Value

a boolean

Examples

if (FALSE) {
is_json("file.json")
}