我有很多格式化,因为这行:正则表达式查找第一个和第二个” occurence在每一行
{"id":1,"Melbourne is the capital of Australia.","correct":0,"Canberra is the capital of Australia."},
我需要它转换为这种新格式:
{"id":1,"statement":"Melbourne is the capital of Australia.","correct":0,"answer":"Canberra is the capital of Australia."},
我可以做到这一点,如果我能找到,"
的第一次和第二次发生在每一行
在哪里这些线是从哪里来的?它们看起来像是在生成JSON时失败的尝试。修复这些数据的来源可能会更容易,因此它会输出有效的JSON,而不是在您的末端输入字符串... – Chris