undid double stringify

This commit is contained in:
Tony Tam
2014-09-28 20:23:04 -07:00
parent b0eff2d78b
commit a39ab425bf
3 changed files with 3 additions and 3 deletions

View File

@@ -368,7 +368,7 @@ class OperationView extends Backbone.View
else if contentType is "application/json" || /\+json$/.test(contentType)
json = null
try
json = JSON.stringify(JSON.stringify(JSON.parse(content), null, " "))
json = JSON.stringify(JSON.parse(content), null, " ")
catch e
json = "can't parse JSON. Raw result:\n\n" + content
code = $('<code />').text(json)