work around json_encode bug when parsing input data in HTTP/Request