diff --git a/src/core/components/response.jsx b/src/core/components/response.jsx index a255d1a6..e354c61e 100644 --- a/src/core/components/response.jsx +++ b/src/core/components/response.jsx @@ -8,7 +8,7 @@ const getExampleComponent = ( sampleResponse, examples, HighlightCode ) => { let exampleValue try { exampleValue = example && example.toJS ? example.toJS() : example - exampleValue = JSON.stringify(exampleValue) + exampleValue = JSON.stringify(exampleValue, null, 2) } catch(e) { exampleValue = String(example)