You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pretty printing a .JSArray is missing the opening brace like:
"something":
{
"a": "a",
"b": "b",
"c": "c"
}
]
when this is expected
"something":
[
{
"a": "a",
"b": "b",
"c": "c"
}
]
A possible fix is to replace line 251 of JSValue with: case .JSArray(let array): return "[\(newline)" + (array.map({ "\(nextIndent)\($0.prettyPrint(indent, level + 1))" })) .joinWithSeparator(",\(newline)") + "\(newline)\(currentIndent)]"
The text was updated successfully, but these errors were encountered:
pretty printing a
.JSArray
is missing the opening brace like:when this is expected
A possible fix is to replace line
251
ofJSValue
with:case .JSArray(let array): return "[\(newline)" + (array.map({ "\(nextIndent)\($0.prettyPrint(indent, level + 1))" })) .joinWithSeparator(",\(newline)") + "\(newline)\(currentIndent)]"
The text was updated successfully, but these errors were encountered: