Replace standard Android JSON parser for better performance?

前端 未结 5 1340
生来不讨喜
生来不讨喜 2021-02-14 17:19

I know that Android has a JSON parser baked in but I was wondering if it was worth using something that offered better performance (like Jackson - see http://jackson.codehaus.or

5条回答
  •  孤街浪徒
    2021-02-14 17:39

    Late answer but it might still help. I'm using Jackson for parsing JSON from Twitter as well as persisting Maps to the database. The data mapping in Jackson is just wonderful. Being able to map JSON directly to an object is awesome and makes everything alot cleaner.

    Even if you are only parsing simple replies data mapping might help you make your code cleaner (and more efficient). For me it's godsend that I don't have to write parsing logic for every type of Twitter api function.

提交回复
热议问题