Search code examples
javajson-simple

What's Wrong With This JSON?


I'm using json simple to create and parse some json. However, after creating it, I then get a ParseException when I do parser.parse(jStr);. Below is the value of jStr

{"score":12,"balls":[[PURPLE_V,134.33325,331.11713,2.0,10.750022,-115,11.0,0],[PURPLE_SPLAT,59.209473,169.87143,0.0,6.2909174,16,11.0,1],[GREEN_V,119.00015,73.71671,-12.0,6.7500067,-35,11.0,0],[ORANGE_V,229.66664,7.4416676,8.0,5.250001,-5,11.0,0]]}

What's wrong with this? Can I not do an array of arrays?


Solution

  • PURPLE_V, PURPLE_SPLAT,GREEN_V, ORANGE_V should be inside quotes.