An exception in Json.NET: Token PropertyName in state “Start” would result in an invalid JavaScript object

筅森魡賤 提交于 2020-01-03 07:39:25

问题


I see the error in my prod server log; can u give me any hint about what kinds of situations would trigger the error? Thanks.

Token PropertyName in state Start would result in an invalid JavaScript object.

2010-08-02 04:33:56,446 DEBUG 10 XXX - at Newtonsoft.Json.JsonWriter.AutoComplete(JsonToken tokenBeingWritten)
   at Newtonsoft.Json.JsonWriter.WritePropertyName(String name)

回答1:


Looking at the source:

http://json.codeplex.com/SourceControl/changeset/view/64750#128137

It would appear you are trying to write something out-of-order.

Without seeing your code it would be difficult to know what.

Possibly some exception is being caught and thrown and upsetting the output order?



来源:https://stackoverflow.com/questions/3386708/an-exception-in-json-net-token-propertyname-in-state-start-would-result-in-an

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!