550How to acess Java Objects, using JSON
- Oct 22, 2006Hi,
I am new to JSON an I am learning JSON. I have a question for the group.
I have a button and onclick of the button, I am calling a servlet and
I want to pass Person Object to the client. In doGet() method I am
doing the following things
JSONObject obj = new JSONObject();
Vector v = new Vector();
v.add(new Employee("Jim", "1"));
v.add( new Employee("Tom", "2"));
var jsonExpression = "(" + object.responseText + ")";
var customer = eval(jsonExpression);
I want to display back employee name and employee id.
- << Previous post in topic Next post in topic >>