$listItem->toJson()
Converts the object to a json string
$listItem->toJson(int $flags, int $depth = 512): string
Parameters
| Name | Type | Default |
|---|---|---|
$flags |
int |
0 |
$depth |
int |
512 |
Return type
string
Exceptions
| Type | Description |
|---|---|
JsonException |
for invalid JSON |
Parent class
Wagnerwagner\Merx\ListItem inherited from Kirby\Toolkit\Obj