Changed request() to create json-compatible strings