Convert JSON string to Java object

https:‮al.www//‬utturi.com
Convert JSON string to Java object
class Employee{
	public Employee(String string, int i) {
		name = string;
		age = i;
	}
	String name;
	int age;
}

String empString = "{\"age\":22,\"name\":\"Alice\"}";
Employee Employee1 = JSONObject.parseObject(empString, Employee.class);
Created Time:2017-09-06 07:07:37  Author:lautturi