Changed format of request/response to JSON