v5.0.0
$isValidObject
Returns true or false if it's an Object (JSON)
This function checks if the given string is a valid json object. Returns boolean
1
$isValidObject[string object]
Copied!
1
bot.command({
2
name: "validobject",
3
code:`$isValidObject[{"test":"hi"}]`
4
})
Copied!
REMINDER! This function will only work if it's JSON Object {"hello":"HI"} => JSON Object {hello:"HI"} => Not JSON Object
Last modified 1mo ago
Copy link
Edit on GitHub