是否可以检查json字符串是否有效?字符串如下所示我想检查
{
"bakso-roso-n'deso__-6.19_106.77":
{"Latitude":"-6.185488","Longitude":"106.77366","Distance":"90.89210930799594"},
"print-point-duri-kepa__-6.19_106.77":
{"Latitude":"-6.18599544813468","Longitude":"106.77267676603988647","Distance":"118.9849339548274"},
"apartment-menara-kebun-jeruk__-6.19_106.78":
{"Latitude":"-6.185303767096767007","Longitude":"106.7752222767679179","Distance":"247.8816947606767"},
"ranch-market---pesanggrahan__-6.19_106.77":
{"Latitude":"-6.1876130647tg7t72002","Longitude":"106.77343661177","Distance":"294.4255786871916"}
}
答案 0 :(得分:6)
您可以使用链接http://jsonlint.com/
答案 1 :(得分:2)
我使用http://jsonlint.com/来验证我的json
答案 2 :(得分:0)
我有一个更好的在线json解析器。它甚至告诉json哪个错误。并告诉我哪些东西丢失了。
您无需点击验证。它会在运行时自动检查错误。这真的很酷。试试吧:))