@@ -63,17 +63,17 @@ |
||
63 | 63 | * |
64 | 64 | * @see jsonDecode |
65 | 65 | */ |
66 | - private const JSON_DECODE_ACCEPT_MASK = 31; # 1 1111 accept bitmask (five bits with the msb flags) |
|
67 | - private const JSON_DECODE_ACCEPT_JSON = 16; # 1 0000 JSON text |
|
68 | - private const JSON_DECODE_ACCEPT_DEFAULT = 23; # 1 0111 default: string, array or object |
|
69 | - private const JSON_DECODE_ACCEPT_OBJECT = 17; # 1 0001 object |
|
70 | - private const JSON_DECODE_ACCEPT_ARRAY = 18; # 1 0010 array |
|
71 | - private const JSON_DECODE_ACCEPT_STRING = 20; # 1 0100 string |
|
72 | - private const JSON_DECODE_ACCEPT_ARRAY_OF_OBJECTS = 24; # 1 1000 array with only objects (incl. none) |
|
73 | - private const JSON_DECODE_ACCEPT_ARRAY_SINGLE_OBJECT = 25; # 1 1001 array with one single object, return that item |
|
66 | + private const JSON_DECODE_ACCEPT_MASK = 31; # 1 1111 accept bitmask (five bits with the msb flags) |
|
67 | + private const JSON_DECODE_ACCEPT_JSON = 16; # 1 0000 JSON text |
|
68 | + private const JSON_DECODE_ACCEPT_DEFAULT = 23; # 1 0111 default: string, array or object |
|
69 | + private const JSON_DECODE_ACCEPT_OBJECT = 17; # 1 0001 object |
|
70 | + private const JSON_DECODE_ACCEPT_ARRAY = 18; # 1 0010 array |
|
71 | + private const JSON_DECODE_ACCEPT_STRING = 20; # 1 0100 string |
|
72 | + private const JSON_DECODE_ACCEPT_ARRAY_OF_OBJECTS = 24; # 1 1000 array with only objects (incl. none) |
|
73 | + private const JSON_DECODE_ACCEPT_ARRAY_SINGLE_OBJECT = 25; # 1 1001 array with one single object, return that item |
|
74 | 74 | private const JSON_DECODE_ACCEPT_ARRAY_SINGLE_OBJECT_NULLABLE = 26; # 1 1010 array with one single object, return that item, or empty array, return null |
75 | - private const JSON_DECODE_ACCEPT_SUCCESS_STRING = 28; # 1 1100 string "success" |
|
76 | - private const JSON_DECODE_ACCEPT_SUCCESS_OBJECT = 29; # 1 1101 object with single "success" property and value true |
|
75 | + private const JSON_DECODE_ACCEPT_SUCCESS_STRING = 28; # 1 1100 string "success" |
|
76 | + private const JSON_DECODE_ACCEPT_SUCCESS_OBJECT = 29; # 1 1101 object with single "success" property and value true |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * @const string ASCII upper-case characters part of a hexit |