Fixed NPE in json_decode.