Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 480 Bytes

usdisvalidobject.md

File metadata and controls

27 lines (19 loc) · 480 Bytes
description
Returns true or false if it's an Object (JSON)

$isValidObject

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 %}