简体   繁体   English

在Android中寻找最快的方法字符串到JSONObject

[英]looking for fastest way string to JSONObject in Android

I used to use new JSONObject(string) to convert string to JSONObject. 我曾经使用新的JSONObject(字符串)将字符串转换为JSONObject。 however, it is too slow performance-wise. 但是,它在性能方面太慢了。 Anybody have the faster solution? 有人有更快的解决方案吗?

thanks a lot!! 非常感谢!!

regards perry 关于佩里

Take a look at Jackson . 看看杰克逊 They claim to be faster than any other Java JSON parser. 他们声称比任何其他Java JSON解析器更快。 It also parses the data in a stream, lowering memory consumption. 它还解析流中的数据,从而降低内存消耗。

我已经使用Gson取得了一些成功: http//code.google.com/p/google-gson/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM