Checks if the given value is a JSON string.
isJson('{ "some": "value" }'); // true isJson({}); // false isJson('not json'); // false
The value to check.
Whether the value is a JSON string.
Generated using TypeDoc
Checks if the given value is a JSON string.
isJson('{ "some": "value" }'); // true isJson({}); // false isJson('not json'); // false