Convert JSON object to JSON string

htt‮www//:sp‬.lautturi.com
Convert JSON object to JSON string
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);
String jsonString = jsonObject.toJSONString();
Created Time:2017-09-06 07:06:40  Author:lautturi