向webservice发送JSON时出现分段错误

向webservice发送JSON时出现分段错误,json,Json,在提交到webservice时,我对下面的JSON对象进行了几轮分割后发现了错误 {"zone1": [{"detected_people": {"coordinates": [[17, 4], [22, 3], [23, 4], [13, 4], [21, 6], [15, 22]]}, "gridOrigin": [28.5, 12.6], "gridScale": 0.5, "gr

在提交到webservice时,我对下面的JSON对象进行了几轮分割后发现了错误

{"zone1": [{"detected_people": {"coordinates": [[17, 4], [22, 3], [23, 4], [13, 4], [21, 6], [15, 22]]}, "gridOrigin": [28.5, 12.6], "gridScale": 0.5, "gridSizeX": 50, "gridSizeY": 50, "stamp": "2020-08-29 17:43:32"}]}
Segmentation fault (core dumped)
但是对于下面的JSON,没有问题

{"detected_people": {"coordinates": [[12, 5], [17, 4], [23, 4], [15, 8], [21, 6], [15, 22]]}, "gridOrigin": [28.5, 12.6], "gridScale": 0.5, "gridSizeX": 50, "gridSizeY": 50, "stamp": "2020-08-29 17:45:19"}

有什么问题吗?

这些JSON示例中描述的对象是不同的。所以也许您的Web服务需要某种数据结构?