From 10538eca8b97f0d6ef36cc8186690a3d00b5f756 Mon Sep 17 00:00:00 2001
From: Sackery <sackery.net@gmail.com>
Date: Thu, 8 Feb 2018 17:54:22 +0800
Subject: [PATCH] Change pretty json string to compact json string

---
 juniper_rocket/src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/juniper_rocket/src/lib.rs b/juniper_rocket/src/lib.rs
index 15c8f4a5..4c3ed354 100644
--- a/juniper_rocket/src/lib.rs
+++ b/juniper_rocket/src/lib.rs
@@ -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)
     }