Json
class Json (View source)
Properties
| static protected callable|null | $encoder | The custom JSON encoder. |
|
| static protected callable|null | $decoder | The custom JSON decode. |
Methods
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.
Details
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.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.