vrec.setMirrorsFromList(mirrorList, numProcs);
vrec.setOwner((short) 2);
vrec.setInEdges(3);
vrec.setOutEdges(2);
String s = vrec.toString();
JSONParser parser = new JSONParser(JSONParser.MODE_JSON_SIMPLE);
try {
JSONObject obj = (JSONObject) parser.parse(s);
// System.out.println(obj.toJSONString());
} catch (ParseException e) {
e.printStackTrace();
}
s = "{\"mirrors\":[0,1,2,3,4,5,6,7],\"inEdges\":212,\"gvid\":0,\"outEdges\":4,\"owner\":5,\"VertexData\":null}";
try {
JSONObject obj = (JSONObject) parser.parse(s);
// System.out.println(obj.toJSONString());
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}