From 7532c8d2fa88da5f9ba6a93ff9b2f2500513716d Mon Sep 17 00:00:00 2001 From: Simon Fredsted Date: Mon, 20 Jan 2025 12:11:43 +0100 Subject: [PATCH] Update docs --- docs/webhookscript/functions/string.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/webhookscript/functions/string.md b/docs/webhookscript/functions/string.md index 6a421d6..ccd8f71 100644 --- a/docs/webhookscript/functions/string.md +++ b/docs/webhookscript/functions/string.md @@ -261,6 +261,14 @@ If `safe_mode` is set to true, characters like `<`, `>` are HTML-entity encoded. ## JSON +### is_json(***any*** value) : bool + +Returns true if `value` is a valid JSON string. + +``` +is_json('{"test": "test"}').dump() // true +``` + ### json_decode(***string*** json) : array Decodes `json` and returns an array.