You should not notice any breaking changes in this release unless you were using named parameters, or ignoring argument types defined in docblocks.
json_decode()
's signature
$source
is now $json
$options
is now $flags
mixed
return type to match json_decode()
SyntaxError
SyntaxError
's constructor:
$linenumber
is now $lineNumber
$columnNumber
is now $column
Published by colinodell almost 2 years ago
@throws
docblocks needed for PhpStorm to recognize exceptions (#21)Published by colinodell over 2 years ago
JSON_BIGINT_AS_STRING
is set (#17)Published by colinodell almost 3 years ago
JSON_THROW_ON_ERROR
explicitly set to true (#15)Published by colinodell almost 4 years ago
Published by colinodell over 5 years ago
.phpstorm.meta.php
for better code completionPublished by colinodell about 6 years ago
Now with 100% more PHP 7.3 compatibility!
\JsonException
(added in PHP 7.3)JSON_THROW_ON_ERROR
SyntaxError
class now extends from \JsonException
Published by colinodell about 6 years ago
Published by colinodell almost 7 years ago
Published by colinodell almost 7 years ago
Published by colinodell almost 7 years ago
This release contains massive performance improvements of 98% or more, especially for larger JSON inputs!
json_decode()
first in case normal JSON is given, since this function is much faster (#1)JSON_OBJECT_AS_ARRAY
was improperly taking priority over assoc
in some casesPublished by colinodell almost 7 years ago
Published by colinodell almost 7 years ago
Initial release! 🎉