map map = request . getparametermap();
Iterator & gtit = map.keySet()。 Iterator ();
while(it.hasNext()){
String key =(String)it . next();
String[]values =(String[])map . get(key);
jsonObject.accumulate(key,values[0]);
}
string name = JSON object . getstring(" userName "); //Returns the user name accepted by the front desk.
System.out.println (name); //output user name
JSON object . clear(); //clear the data in jsonObjec
JsonObject.put ("love", "football"); //Assign football to the variable name love.
out . print(JSON object); //Returns data in json format.