class Json (View source)
| static protected callable|null | $encoder | The custom JSON encoder. | |
| static protected callable|null | $decoder | The custom JSON decode. |
| static mixed | encode(mixed $value)
Encode the given value. | |
| static mixed | decode(mixed $value, bool|null $associative = true)
Decode the given value. | |
| static void | encodeUsing(callable|null $encoder)
Encode all values using the given callable. | |
| static void | decodeUsing(callable|null $decoder)
Decode all values using the given callable. |
Encode the given value.
Decode the given value.
Encode all values using the given callable.
Decode all values using the given callable.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Database/Eloquent/Casts/Json.html