【发布时间】:2018-02-22 16:48:02
【问题描述】:
这是我得到的输出。
"last_name:""abcd","email:""abc.com","first_name:""xyz"
期望的输出是:
"last_name":"abcd","email":"abc.com","first_name":"xyz"
【问题讨论】:
-
是 JSON 吗?它真的看起来像内部 JSON。你试过什么吗?
-
我正在尝试将其转换为 JSON 格式。
-
字符串来自哪里?
-
如果其中一个字符未固定,另请参阅:Find all matches of two-character string in a text file and swap them。