}
@Test
public void optInt() throws Exception {
JSONObject j = new JSONObject("{str: \"hello\", int: 3}");
Assert.assertEquals(0, j.optInt("v"));
Assert.assertEquals(0, j.optInt("str"));
Assert.assertEquals("hello", j.optString("str"));
Assert.assertEquals("3", j.optString("int"));
}