Parsing JSON on google app engine (java)

前端 未结 4 885
[愿得一人]
[愿得一人] 2021-02-08 13:38

i use org.json library to work with JSON-data in my apps. But it seems that google app engine doesn\'t allow to use it, what\'s the best way to work with JSON o

4条回答
  •  不知归路
    2021-02-08 14:31

    I had the similar question a week ago and after comparing a number of Java JSON libraries (including JSonLIB and GSON) I have chosen Jackson. Check other comparisons on StackOverflow, most of them would recommend Jackson out of the rest.

    After two weeks using it on Google Appengine, I just love it. Not only it has more features than the other mentioned libraries, it is also much faster (see benchmarks here). It is a Json engine in Jersey which I would recommend as well if you want to do anything Restful on Appengine.

    It is stable and still actively developed, with version 2 has just been released couple of weeks ago.

    UPDATE: here is a sample demo for using Jackson with GAE.

提交回复
热议问题