我正在编写一个Java文件可以读取的JSON文件。片段如下...
{
"testCases" :
{
"case.1" :
{
"scenario" : "this the case 1.",
"result" : "this is a very long line which is not easily readble.
so i would like to write it in multiple lines.
but, i do NOT require any new lines in the output.
I need to split the string value in this input file only.
such that I don't require to slide the horizontal scroll again and again while verifying the correctness of the statements.
the prev line, I have shown, without splitting just to give a feel of my problem"
}
}
}
4
JSON
—
Orbit中的Lightness Races
@zashu:大多数文本编辑器都具有软包装功能。这比某些硬编码的行宽立即有用。
—
Lightness Races in Orbit
@LightnessRacesinOrbit在这么长的文件上运行git diff(或解决合并冲突)也很麻烦。
—
休伯特·卡里奥
这是JSON中的多行字符串的重复,引用了OP的问题:“ JSON中可能有多行字符串吗?这主要是为了视觉舒适,所以我想我可以在编辑器中打开自动换行功能,但是我“只是有点好奇... ”
—
安德烈·菲格雷多