is_json | R Documentation |
Check if the provided string is in valid JSON format.
is_json(input_string)
input_string |
A character string to be checked for JSON format. |
A logical value. If the input string is in valid JSON format, returns TRUE, otherwise returns FALSE.
Ulrich Matter umatter@protonmail.com
is_json('{"name": "John", "age": 30}')
# TRUE
is_json('{"name": "John", age: 30}')
# FALSE
is_json('')
# FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.