Closed Nightfirecat closed 7 years ago
For reference, the following is some expected output of test commands:
php > print(json_encode(Array('a'=>(1===1))));
{"a":true}
php > print(json_encode(Array('a'=>("1"==1))));
{"a":true}
php > print(json_encode(Array('a'=>("1"==2))));
{"a":false}
Rather than outputting
"false"
and"true"
,false
andtrue
should be used. (I believe this is due to historical issues of PHP'sjson_encode()
not outputting correct values for booleans in previous versions)In the process, I'd also like to see output see a more consistent schema: output types should be constant (no int/string responses, such as the
chars
andcharacters
keys). This may require additional keys to represent certain states (profiles with characters hidden come to mind).P.S. Unicode and forward slashes should also not be escaped; see the following to fix that: