Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fredsted committed Jan 20, 2025
1 parent a649817 commit 7532c8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/webhookscript/functions/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7532c8d

Please sign in to comment.