multiline strings json code example
Example: 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"
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"