String json = "{query:{name:'upts', type:'userprocedures', ctype:'select', " +
" command:[{query:{command:'select count(*) cnt from copy_tblc'}}, " +
" {query:{command:'select * from copy_tblc', page:{listnum:5, pageno:1}}}]" +
"}}" ;
JSONObject jo = JSONObject.fromObject(json);
QueryObj query = new JSONParser(dc).parseToQueryable(jo);
assertEquals("upts", query.getProcSQL()) ;
assertEquals("select count(*) cnt from copy_tblc", query.getQueryObj(0).getProcSQL()) ;
assertEquals("select * from copy_tblc", query.getQueryObj(1).getProcSQL()) ;