javascript - How can I continue a text string in a JSON object onto another line? -
i have json object defining this:
"cover": { "h1": "xxx", "p1": "very long text" + "more long text" }
i tried split text onto 2 lines visual studio error messages saying "missing comma after object member"
turn on text wrapping in editor / ide.
json isn't javascript, it's data. doesn't make sense screw around data integrity this. enabling word wrap / configuring editor pretty-print json better options. prefer sublime text 3 working it.
Comments
Post a Comment