admin管理员组文章数量:1122832
When parsing a returned JSON by NotesJSONNavigator / NotesJSONElement classes,
I get the mentioned message for each top-level JSON object printed to the server console:
In my opinion, I'm handling all possible LotusScript JSON "types" (Jsonelem_type_array, Jsonelem_type_object, Jsonelem_type_boolean, Jsonelem_type_empty, Jsonelem_type_number & Jsonelem_type_string) in my code, so I have no idea where this message is coming from.
Also, the agent completes processing without any error (which would get trapped in my errorhandlers), and the JSON is valid.
I've set the NotesHTTPRequest parameter "PreferStrings" to true (which acc. to the documentation is returning "Unicode rather than UTF8 byte array"), in order to be able to easily check the NotesHTTPRequest "ResponseCode" - could that be causing the issue?
When parsing a returned JSON by NotesJSONNavigator / NotesJSONElement classes,
I get the mentioned message for each top-level JSON object printed to the server console:
In my opinion, I'm handling all possible LotusScript JSON "types" (Jsonelem_type_array, Jsonelem_type_object, Jsonelem_type_boolean, Jsonelem_type_empty, Jsonelem_type_number & Jsonelem_type_string) in my code, so I have no idea where this message is coming from.
Also, the agent completes processing without any error (which would get trapped in my errorhandlers), and the JSON is valid.
I've set the NotesHTTPRequest parameter "PreferStrings" to true (which acc. to the documentation is returning "Unicode rather than UTF8 byte array"), in order to be able to easily check the NotesHTTPRequest "ResponseCode" - could that be causing the issue?
Share Improve this question asked yesterday DonMaroDonMaro 929 bronze badges1 Answer
Reset to default 1Seems that reading the value of a JSON element with value null triggered the message; after handling the "Jsonelem_type_empty" case separately (and not accessing the element's value at all), the message disappeared.
Funny somehow, that the printed message refers to a datatype 0 - in Carl's findings here you can see that this type should have the value 64...
本文标签:
版权声明:本文标题:lotus notes - Message "LSXBE: Unhandled JSON datatype: 0" from agent on server when parsing JSON - Stack Overf 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736282281a1926594.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论