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.

word wrap msdn

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

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -