description |
---|
Returns true or false if it's an Object (JSON) |
This function checks if the given string is a valid json object. Returns boolean
$isValidObject[string object]
bot.command({
name: "validobject",
code:`$isValidObject[{"test":"hi"}]`
})
{% hint style="danger" %}
REMINDER! This function will only work if it's JSON Object
{"hello":"HI"} => JSON Object
{hello:"HI"} => Not JSON Object
{% endhint %}