diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig
index ef5487f..6466040 100755
--- a/Resources/views/layout.html.twig
+++ b/Resources/views/layout.html.twig
@@ -319,7 +319,7 @@
prettifiedJsonString = prettifiedJsonString.replace(/(\{|\[)\n/g, function(match, sectionOpenCharacter) {
return getJsonCollapseHtml(sectionOpenCharacter) + '\n';
});
- return prettifiedJsonString.replace(/([^\[][\}\]]),?\n/g, '$1\n');
+ return prettifiedJsonString.replace(/([^\[][\}\]])(,)?\n/g, '$1$2\n');
};
var prettifyResponse = function(text) {