$price->toJson()
Converts the object to a json string
$price->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\Price inherited from Kirby\Toolkit\Obj