is this json file? and if yes, how can I read it back to java? [duplicate]
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/
精彩评论