小编Jib*_*ibi的帖子

如何使用Json.simple解析Java中的JSONArray?

我尝试读取这样的JSON文件:

{
  "presentationName" : "Here some text",
  "presentationAutor" : "Here some text",
  "presentationSlides" : [
  {
    "title" : "Here some text.",
    "paragraphs" : [
    {
        "value" : "Here some text."
    },
    {
        "value" : "Here some text."
    }
    ]
  },
  {
    "title" : "Here some text.",
    "paragraphs" : [
    {
        "value" : "Here some text.",
        "image" : "Here some text."
    },
    {
        "value" : "Here some text."
    },
    {
        "value" : "Here some text."
    }
    ]
  }
  ]
}
Run Code Online (Sandbox Code Playgroud)

这是一个学校练习,我选择尝试使用JSON.simple(来自GoogleCode),但我对另一个JSON库开放.我听说过Jackson和Gson:他们比JSON.simple好吗? …

java arrays json

12
推荐指数
2
解决办法
7万
查看次数

标签 统计

arrays ×1

java ×1

json ×1