I have a JSON object that I am defining like this:
"COVER": {
"H1": "XXX",
"P1": "Very long text" +
"More very long text"
}
I tried to split the text onto two lines but I get a Visual Studio error messages saying "missing a comma after an object member"
Turn on text wrapping in your editor / IDE.
JSON isn't JavaScript, it's data. It doesn't make sense to screw around with your data integrity for this. Enabling word wrap / configuring your editor to pretty-print JSON are better options. I personally prefer sublime text 3 for working with it.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments