Work around buggy usage of JSON in request()