Convert JSON object to java object

http‮.www//:s‬lautturi.com
Convert JSON object to java object
class Employee{
	public Employee(String string, int i) {
		name = string;
		age = i;
	}
	String name;
	int age;
}

Employee emp = new Employee("Alice",22);
JSONObject jsonObject = (JSONObject) JSONObject.toJSON(emp);
Employee Employee = JSONObject.toJavaObject(jsonObject, Employee.class);
Created Time:2017-09-06 07:06:55  Author:lautturi