예제 #1
0
        void FormatJsonContent(IRestResponse response)
        {
            var clearContentType = response.GetClearContentType();

            if (clearContentType == "application/json" ||
                clearContentType == "application/javascript" ||
                clearContentType == "text/javascript")
            {
                response.Content = JToken.Parse(response.Content).ToString(Newtonsoft.Json.Formatting.Indented);
            }
        }