开发者

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

开发者 https://www.devze.com 2023-03-06 05:48 出处:网络
This question already has an开发者_JAVA技巧swers here: Closed 11 years ago. Possible Duplicate: A better Java JSON library?
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

精彩评论

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