public void test_for_issue() throws Exception {
String text = "{\"rec\":[{},{}]}";
JsonStroe store = new JsonStroe();
JSONReader reader = new JSONReader(new StringReader(text));
reader.startObject();
String key = reader.readString();
Assert.assertEquals("rec", key);
reader.startArray();
List<KeyValue> list = new ArrayList<KeyValue>();
while(reader.hasNext()) {
KeyValue keyValue = reader.readObject(KeyValue.class);
list.add(keyValue);
}
store.setRec(list);
reader.endArray();
reader.endObject();
reader.close();
}