需要Unity3d的JSON解析器 [英] Need a JSON parser for Unity3d
本文介绍了需要Unity3d的JSON解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要反序列化一些JSON对象.我尝试使用Tiny-json库,但是它太慢了.我尝试使用Newtonsoft.Json,但在网络播放器中失败,出现以下错误:
I need to deserialize some JSON objects. I tried to use Tiny-json library, but it's too slow. I tried to use Newtonsoft.Json, but it fails in webplayer with this error:
MissingMethodException: Method not found: 'System.Collections.ObjectModel.KeyedCollection.
您建议使用哪种JSON解析器?
What JSON parser do you recommend?
推荐答案
您可以尝试以下开源解决方案之一:
You can try one of these open source solutions:
- https://github.com/jacobdufault/fullserializer
- https://github.com/mtschoen/JSONObject (https://www.assetstore.unity3d.com/en/#!/content/710) I am using this one most of the times, it's versbose but does its job well, not sure about performance however
或者与付费的一起去:
这篇关于需要Unity3d的JSON解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文