Skip to content

$isValidObject

$isValidObject checks if the given json is a valid object.

Usage

$isValidObject[object]

Parameters

FieldTypeDescriptionRequired
objectobjectJSON object.true

Example(s)

This will return true as the given object is a valid JSON object:

1
client.command({
2
name: "isValidObject",
3
code: `
4
$isValidObject[{"name":"Leref", "aoijs":"nice"}]
5
`
6
});