Go to the source code of this file.
|
enum | php_json_error_code {
PHP_JSON_ERROR_NONE = 0
, PHP_JSON_ERROR_DEPTH
, PHP_JSON_ERROR_STATE_MISMATCH
, PHP_JSON_ERROR_CTRL_CHAR
,
PHP_JSON_ERROR_SYNTAX
, PHP_JSON_ERROR_UTF8
, PHP_JSON_ERROR_RECURSION
, PHP_JSON_ERROR_INF_OR_NAN
,
PHP_JSON_ERROR_UNSUPPORTED_TYPE
, PHP_JSON_ERROR_INVALID_PROPERTY_NAME
, PHP_JSON_ERROR_UTF16
, PHP_JSON_ERROR_NON_BACKED_ENUM
} |
|
|
PHP_JSON_API | ZEND_EXTERN_MODULE_GLOBALS (json) PHP_JSON_API zend_string *php_json_encode_string(const char *s |
|
PHP_JSON_API zend_result | php_json_encode_ex (smart_str *buf, zval *val, int options, zend_long depth) |
|
PHP_JSON_API zend_result | php_json_encode (smart_str *buf, zval *val, int options) |
|
PHP_JSON_API zend_result | php_json_decode_ex (zval *return_value, const char *str, size_t str_len, zend_long options, zend_long depth) |
|
PHP_JSON_API bool | php_json_validate_ex (const char *str, size_t str_len, zend_long options, zend_long depth) |
|
◆ JSON_G
Value:
#define ZEND_MODULE_GLOBALS_ACCESSOR(module_name, v)
◆ PHP_JSON_API
◆ PHP_JSON_BIGINT_AS_STRING
#define PHP_JSON_BIGINT_AS_STRING (1<<1) |
◆ PHP_JSON_FORCE_OBJECT
#define PHP_JSON_FORCE_OBJECT (1<<4) |
◆ PHP_JSON_HEX_AMP
#define PHP_JSON_HEX_AMP (1<<1) |
◆ PHP_JSON_HEX_APOS
#define PHP_JSON_HEX_APOS (1<<2) |
◆ PHP_JSON_HEX_QUOT
#define PHP_JSON_HEX_QUOT (1<<3) |
◆ PHP_JSON_HEX_TAG
#define PHP_JSON_HEX_TAG (1<<0) |
◆ PHP_JSON_INVALID_UTF8_IGNORE
#define PHP_JSON_INVALID_UTF8_IGNORE (1<<20) |
◆ PHP_JSON_INVALID_UTF8_SUBSTITUTE
#define PHP_JSON_INVALID_UTF8_SUBSTITUTE (1<<21) |
◆ PHP_JSON_NUMERIC_CHECK
#define PHP_JSON_NUMERIC_CHECK (1<<5) |
◆ PHP_JSON_OBJECT_AS_ARRAY
#define PHP_JSON_OBJECT_AS_ARRAY (1<<0) |
◆ PHP_JSON_OUTPUT_ARRAY
#define PHP_JSON_OUTPUT_ARRAY 0 |
◆ PHP_JSON_OUTPUT_OBJECT
#define PHP_JSON_OUTPUT_OBJECT 1 |
◆ PHP_JSON_PARSER_DEFAULT_DEPTH
#define PHP_JSON_PARSER_DEFAULT_DEPTH 512 |
◆ PHP_JSON_PARTIAL_OUTPUT_ON_ERROR
#define PHP_JSON_PARTIAL_OUTPUT_ON_ERROR (1<<9) |
◆ PHP_JSON_PRESERVE_ZERO_FRACTION
#define PHP_JSON_PRESERVE_ZERO_FRACTION (1<<10) |
◆ PHP_JSON_PRETTY_PRINT
#define PHP_JSON_PRETTY_PRINT (1<<7) |
◆ PHP_JSON_THROW_ON_ERROR
#define PHP_JSON_THROW_ON_ERROR (1<<22) |
◆ PHP_JSON_UNESCAPED_LINE_TERMINATORS
#define PHP_JSON_UNESCAPED_LINE_TERMINATORS (1<<11) |
◆ PHP_JSON_UNESCAPED_SLASHES
#define PHP_JSON_UNESCAPED_SLASHES (1<<6) |
◆ PHP_JSON_UNESCAPED_UNICODE
#define PHP_JSON_UNESCAPED_UNICODE (1<<8) |
◆ PHP_JSON_VERSION
◆ phpext_json_ptr
◆ php_json_error_code
Enumerator |
---|
PHP_JSON_ERROR_NONE | |
PHP_JSON_ERROR_DEPTH | |
PHP_JSON_ERROR_STATE_MISMATCH | |
PHP_JSON_ERROR_CTRL_CHAR | |
PHP_JSON_ERROR_SYNTAX | |
PHP_JSON_ERROR_UTF8 | |
PHP_JSON_ERROR_RECURSION | |
PHP_JSON_ERROR_INF_OR_NAN | |
PHP_JSON_ERROR_UNSUPPORTED_TYPE | |
PHP_JSON_ERROR_INVALID_PROPERTY_NAME | |
PHP_JSON_ERROR_UTF16 | |
PHP_JSON_ERROR_NON_BACKED_ENUM | |
Definition at line 42 of file php_json.h.
◆ php_json_decode_ex()
◆ php_json_encode()
◆ php_json_encode_ex()
◆ php_json_validate_ex()
◆ ZEND_EXTERN_MODULE_GLOBALS()
◆ encode_max_depth
◆ encoder_depth
◆ error_code
◆ json_module_entry
◆ len
◆ options
◆ php_json_serializable_ce