Answers for "json string with two lines"

1

json string with two lines

JSON does not allow real line-breaks. You need to replace all the 
line breaks with \n.

eg:
"first line
second line"

can saved with:
"first line\nsecond line"
Posted by: Guest on April-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language