[Json] Adds new types of exceptions, supported by PHP 5.5.