removed json_encode() from httpResponse