You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Create JSONParser with mode as RFC4627
2. try to parse string "{ \"param1\'\': value1, \"param2\": \"value2\" }" which
invalid format
What is the expected output? What do you see instead?
It should throw exception, instead it's getting parsed as valid
What version of the product are you using? On what operating system?
1.1.1
Please provide any additional information below.
Original issue reported on code.google.com by arunoda...@gmail.com on 10 Jul 2014 at 10:51
The text was updated successfully, but these errors were encountered:
Tested with the curent version 2.0 and 1.3, an exception are throws.
public class TestIssue46 extends TestCase {
public void testEmptyStrict() throws Exception {
String s;
s = "{ \"param1:\"sample\"\": \"value1\", \"param2\": \"value2\" }";
s = "{ \"param1\'\': value1, \"param2\": \"value2\" }";
JSONObject o = null;
try {
o = (JSONObject) JSONValue.parseStrict(s);
} catch (Exception e) {
// should be invalid
}
assertEquals(o, null);
}
}
Original comment by uriel.chemouni on 15 Jul 2014 at 11:30
Original issue reported on code.google.com by
arunoda...@gmail.com
on 10 Jul 2014 at 10:51The text was updated successfully, but these errors were encountered: