Change pretty json string to compact json string

This commit is contained in:
Sackery 2018-02-08 17:54:22 +08:00 committed by theduke
parent bfe2ef511a
commit 10538eca8b

View file

@ -93,7 +93,7 @@ impl GraphQLRequest {
} else {
Status::BadRequest
};
let json = serde_json::to_string_pretty(&response).unwrap();
let json = serde_json::to_string(&response).unwrap();
GraphQLResponse(status, json)
}