I used to use new JSONObject(string) to convert开发者_运维问答 string to JSONObject. however, it is too slow performance-wise. Anybody have the faster solution?
Take a look at Jackson. They claim to be faster than any other Java JSON parser. It also parses the data in a stream, lowering memory consumption.
I've used Gson with some good success: http://code.google.com/p/google-gson/
精彩评论