json_encode. * @link https://php.net/manual/en/class.jsonserializable.php * @since 5.4 */ interface JsonSerializable { /** * Specify data which should be serialized to JSON * @link https://php.net/manual/en/jsonserializable.jsonserialize.php * @return mixed data which can be serialized by json_encode, * which is a value of any type other than a resource. * @since 5.4 */ #[TentativeType] public function jsonSerialize(): mixed; } class JsonIncrementalParser { public const JSON_PARSER_SUCCESS = 0; public const JSON_PARSER_CONTINUE = 1; /** * @param int $depth [optional] * @param int $options [optional] */ #[Pure] public function __construct($depth, $options) { } #[Pure] public function getError() { } public function reset() { } /** * @param string $json */ public function parse($json) { } /** * @param string $filename */ public function parseFile($filename) { } /** * @param int $options [optional] */ #[Pure] public function get($options) { } } /** * Class JsonException * *

A new flag has been added, JSON_THROW_ON_ERROR, which can be used with * json_decode() or json_encode() and causes these functions to throw a * JsonException upon an error, instead of setting the global error state that * is retrieved with json_last_error(). JSON_PARTIAL_OUTPUT_ON_ERROR takes * precedence over JSON_THROW_ON_ERROR. *

* * @since 7.3 * @link https://wiki.php.net/rfc/json_throw_on_error */ class JsonException extends Exception { } /** * (PHP 5 >= 5.2.0, PECL json >= 1.2.0)
* Returns the JSON representation of a value * @link https://php.net/manual/en/function.json-encode.php * @param mixed $value

* The value being encoded. Can be any type except * a resource. *

*

* All string data must be UTF-8 encoded. *

*

PHP implements a superset of * JSON - it will also encode and decode scalar types and NULL. The JSON standard * only supports these values when they are nested inside an array or an object. *

* @param int $flags [optional]

* Bitmask consisting of JSON_HEX_QUOT, * JSON_HEX_TAG, * JSON_HEX_AMP, * JSON_HEX_APOS, * JSON_NUMERIC_CHECK, * JSON_PRETTY_PRINT, * JSON_UNESCAPED_SLASHES, * JSON_FORCE_OBJECT, * JSON_UNESCAPED_UNICODE. * JSON_THROW_ON_ERROR The behaviour of these * constants is described on * the JSON constants page. *

* @param int $depth [optional]

* Set the maximum depth. Must be greater than zero. *

* @return string|false a JSON encoded string on success or FALSE on failure. */ function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false { } /** * (PHP 5 >= 5.2.0, PECL json >= 1.2.0)
* Decodes a JSON string * @link https://php.net/manual/en/function.json-decode.php * @param string $json

* The json string being decoded. *

*

* This function only works with UTF-8 encoded strings. *

*

PHP implements a superset of * JSON - it will also encode and decode scalar types and NULL. The JSON standard * only supports these values when they are nested inside an array or an object. *

* @param bool|null $associative

* When TRUE, returned objects will be converted into * associative arrays. *

* @param int $depth [optional]

* User specified recursion depth. *

* @param int $flags [optional]

* Bitmask of JSON decode options:
* {@see JSON_BIGINT_AS_STRING} decodes large integers as their original string value.
* {@see JSON_INVALID_UTF8_IGNORE} ignores invalid UTF-8 characters,
* {@see JSON_INVALID_UTF8_SUBSTITUTE} converts invalid UTF-8 characters to \0xfffd,
* {@see JSON_OBJECT_AS_ARRAY} decodes JSON objects as PHP array, since 7.2.0 used by default if $assoc parameter is null,
* {@see JSON_THROW_ON_ERROR} when passed this flag, the error behaviour of these functions is changed. The global error state is left untouched, and if an error occurs that would otherwise set it, these functions instead throw a JsonException
*

* @return mixed the value encoded in json in appropriate * PHP type. Values true, false and * null (case-insensitive) are returned as TRUE, FALSE * and NULL respectively. NULL is returned if the * json cannot be decoded or if the encoded * data is deeper than the recursion limit. */ function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mixed { } /** * Returns the last error occurred * @link https://php.net/manual/en/function.json-last-error.php * @return int an integer, the value can be one of the following * constants: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
ConstantMeaningAvailability
JSON_ERROR_NONENo error has occurred 
JSON_ERROR_DEPTHThe maximum stack depth has been exceeded 
JSON_ERROR_STATE_MISMATCHInvalid or malformed JSON 
JSON_ERROR_CTRL_CHARControl character error, possibly incorrectly encoded 
JSON_ERROR_SYNTAXSyntax error 
JSON_ERROR_UTF8Malformed UTF-8 characters, possibly incorrectly encodedPHP 5.3.3
JSON_ERROR_RECURSIONOne or more recursive references in the value to be encodedPHP 5.5.0
JSON_ERROR_INF_OR_NAN * One or more * NAN * or INF * values in the value to be encoded * PHP 5.5.0
JSON_ERROR_UNSUPPORTED_TYPEA value of a type that cannot be encoded was givenPHP 5.5.0
JSON_ERROR_INVALID_PROPERTY_NAMEA property name that cannot be encoded was givenPHP 7.0.0
JSON_ERROR_UTF16Malformed UTF-16 characters, possibly incorrectly encodedPHP 7.0.0
*/ #[Pure(true)] function json_last_error(): int { } /** * Returns the error string of the last json_encode() or json_decode() call, which did not specify JSON_THROW_ON_ERROR. * @link https://php.net/manual/en/function.json-last-error-msg.php * @return string Returns the error message on success, "No error" if no error has occurred. * @since 5.5 */ #[Pure] function json_last_error_msg(): string { } __halt_compiler();----SIGNATURE:----lPh1m08goHQKTB8WqMsfBYfN4oTqjgUJSf4rPJCB+0Hvy/OZ25P8YXfqC2PrfdwFR9FKjED4QPs2BdV3bgeAVAhznoZ2yoETfCLc6nVv5GC12lB6fiwyURf3lKUWcDmoMkOI8uBOnmFd7xbK2SsGx2fmHE3AYpnhclwO0gLomgXTDX4oETOdyIHAO67SVuL0zGQVDKkWkoDeMETDq8bf4alibGsmiAOx/2jpFU+D69ygIujNpZFh8TQ+3hjriVasDsuuVEUR2OYLxXY+R4hYln7CBk9KhnsrCQyao9F0hHB7HEGbhacADkTlbvTbNU1UZx2+Hoho9TtdYZxOajCmjEOQWSAVDqFdEyCAVEPtdtGY1fyNZDsE1oHLqZ8CQ+NY7XzvTcqA4+IYDLe04F2odCwHv5whk3OhWIVAb5iMHJ9cU5tiX5IEFlxyCl10a7CtgdtbE2QiKO+65sD5vvL2dVcXUV4EkuK/h8gg0k1iVsvTedMnbW0vMW4uk3z3PZVFNnmHTli66fHpNeO7n9kBRj93XbvNW5TTai8RqQqlgQFrqgX3lABGlNl/kPYO3MrrJOORjepFYm2FzVw4Tj81I7ErPTStIwuQjW2hWUT4ZrU9HH5c/dbNHGY5+DR7tD0XCbaSBmoJke2o1b8Asxeo7AtLbJ99MzCP/4BAjfM17h0=----ATTACHMENT:----MTc5Mzk1NDEzNTE2MjcxMyA2MzQ2MDg2MjEzMzUwMjEgNDYxODMxMzk3MTE5MTIzNg==