There is a COMException failure when using IJSONWriter to write a JSON object (IJSONWriter.StartObject, IJSONObject.ToJSON) and a JSON array (IJSONWriter.StartArray, IJSONArray.ToJSON).
上次发布: December 11, 2014ArcObjects SDK
漏洞 ID 编号
BUG-000082305
已提交
September 30, 2014
上次修改时间
June 5, 2024
适用范围
ArcObjects SDK
找到的版本
10.2.2
操作系统
Windows OS
操作系统版本
8
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.
解决办法
1. For the IJSONWriter interface, use IJSONWriter2.WriteRawStringVal to write the JSON object directly.2. To output the IJSONObject to IJSONWriter, the JSON object can be converted to a raw string by IJSONObject.ToJSONString, and the string can be written in JSONWriter by IJSONWriter.WriteRawStringVal.