I wrote following code to read a file
JSONObject obj = (JSONObject)parser.parse(new FileReader(file.getPath()));
but it got error when file content is like following
{
needed:"something",
other1:true,
other2:"not important"
}
error messageUnexpected character (n) at position 1.
How could I correct it? Thanks