mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-17 02:10:39 +03:00
Render valid JSON in samples (quoted object keys)
This commit is contained in:
parent
9aea9bc683
commit
0b46186585
|
@ -82,7 +82,7 @@ function objectToHTML(json) {
|
|||
key = keys[i];
|
||||
hasContents = true;
|
||||
output += '<li><div class="hoverable ' + collapsed + '">';
|
||||
output += '<span class="property">' + htmlEncode(key) + '</span>: ';
|
||||
output += '<span class="property">\"' + htmlEncode(key) + '"</span>: ';
|
||||
output += valueToHTML(json[key]);
|
||||
if (i < length - 1) {
|
||||
output += ',';
|
||||
|
|
Loading…
Reference in New Issue
Block a user