开发者

is this json file? and if yes, how can I read it back to java? [duplicate]

This question already has an开发者_JAVA技巧swers here: Closed 11 years ago.

Possible Duplicate:

A better Java JSON library?

Hi,

I have a json file like this:

workloads = [
  {
    total: 5,
    attributes:
    {
      taskA:1,
      taskB:2
    }
  }
]

Thanks in advance


This is not a valid JSon object.

to validate your json you can use for example jsonlint.

Have a look at the Json grammar here

To know which library you can use to read json from java look here A better Java JSON library?


There are plenty of links on the JSON site: http://json.org/java/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜