PDA

View Full Version : how to send json object to client(including it in response)



kirankumar1231
18 Mar 2011, 9:58 PM
hello experts
i am new to this json and extjs kinda stuff
i want to know how to send json list to the client
and get that json object stored in a json store
this is the java code i have written
Json.java


JSONObject jobj=new JSONObject();
Employee empl=new Employee();
empl=empitr.next();
jobj.put("empid",empl.getEmpid());
jobj.put("empname",empl.getEmpname());
json.add(jobj);
}
JSONobj.put("employee",json);//how to send this object to client i mean include it in response