我有一个字符串,像这样:
sometext{"points":{"point":[{"lat":"55.68705772049725","lon":"21.127218855544925"},{"lat":"55.68714472465217","lon":"21.127141742035747"},{" lat":"55.6871934235096","lon":"21.12712439149618"},{"lat":"55.68733625113964","lon":"21.127151465043426"},{"lat":"55.68751168437302","768437302","768437302","lon":"21.127151465043426"} },{"lat":"55.687646800652146","lon":"21.127120200544596"},{"lat":"55.68781033158302","lon":"21.127034788951278"},{"lat":"55.6879814900458" :"21.12691568210721"}]}}一些文本
regex
提取物JSON
可以吗Javascript
?
PS我得到了很多数据并将其加入到字符串中。所以我需要从该字符串中获取 json,因为可能有第一个对象的结尾和其他对象的开头