JSONArray json = (JSONArray) JSONValue.parseWithException(new FileReader(tempJson));
assertEquals("unexpected number of rows", 2, json.size());
// make sure only the two rows we expect are there
JSONObject rowA = (JSONObject) json.get(0);
assertEquals("unexpected number of keys", 2, rowA.keySet().size());
assertEquals("unexpected row key", asHex("rowA"), rowA.get("key"));
JSONObject rowB = (JSONObject) json.get(0);
assertEquals("unexpected number of keys", 2, rowB.keySet().size());
assertEquals("unexpected row key", asHex("rowA"), rowB.get("key"));