Closed migueltt closed 7 years ago
JUnit test case JSONObjectTest.jsonObjectParsingErrors()
updated - error messages including positions changed (constructor JSONObject(JSONTokener)
now backs one token prior to raise JSONException
.
JUnit test cases updated for JSONObjectTest.jsonObjectParsingErrors()
- adjust error position due to removal of JSONTokener.back()
in constructor JSONObject(JSONTokener)
.
Good test coverage.
Constructor
JSONObject(JSONTokener)
has been updated to provide a more meaningful error message that includes actual error location when errors are found when a duplicate key is found.