您好,我正在使用 Elastic Search 和 Golang,当我使用 Golang 的 Json Encoder 函数将数据发送到 jquery 时,从 Golang 中的弹性搜索索引获取数据后,我"Unexpected token { in JSON "
在解析 jquery 中的数据时出错
这是 Goland Json 编码器发送给 Jquery 的内容:
{"id":212,"user_id":10,"meta_description":"Plot,G-16, Islamabad,In G-16, Islamabad, Islamabad","property_type":"16","Location1":"Pakistan","Location2":"Islamabad","Location3":null,"Location4":"Islamabad","price":1850000,"bedrooms":0,"bathrooms":0,"add_date":{"Time":"0001-01-01T00:00:00Z","Valid":false}}
{"id":213,"user_id":10,"meta_description":"Plot,G-16, Islamabad,In G-16, Islamabad, Islamabad","property_type":"16","Location1":"Pakistan","Location2":"Islamabad","Location3":null,"Location4":"Islamabad","price":1800000,"bedrooms":0,"bathrooms":0,"add_date":{"Time":"0001-01-01T00:00:00Z","Valid":false}}