Json.NET中的一个异常:状态为“开始"的令牌PropertyName处于“开始"状态.会导致无效的JavaScript对象 [英] An exception in Json.NET: Token PropertyName in state "Start" would result in an invalid JavaScript object
本文介绍了Json.NET中的一个异常:状态为“开始"的令牌PropertyName处于“开始"状态.会导致无效的JavaScript对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在产品服务器日志中看到错误;您能给我什么暗示会导致错误的情况的提示吗?谢谢.
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)
推荐答案
查看源代码:
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?
这篇关于Json.NET中的一个异常:状态为“开始"的令牌PropertyName处于“开始"状态.会导致无效的JavaScript对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文