3
解析以下JSON字符串时,正在更改x坐标的浮点值。精度解析丢失浮点数
{ "spatialReference" : { "wkid" : 4326 }, "candidates" : [ { "address" : "240000001", "location" : { "x" : -79.939219121531494, "y" : 40.852153506889806 }, "score" : 100, "attributes" : { } } ]}
当打电话JObject.Parse对前述XML它转化为
{ "spatialReference": { "wkid": 4326 }, "candidates": [ { "address": "240000001", "location": { "x": -79.9392191215315, "y": 40.852153506889806 }, "score": 100, "attributes": {} } ] }
是否有强迫解析器治疗X/Y值作为字符串,并保持较高精度的方法吗?