Update Json.php

Handling null value without json_last_error.