basically taking in a json object via a post api thats like the following
{
[
param_name: "name",
param_value: "jason"
param_type: "varchar"
],
[
param_name: "age",
param_value: "15"
param_type: "varchar"
]
}
then i want to convert it to a predefined java object where the parameter names are the same as the "param_value" values.
Is there anyway to do this in java, with a method like this?
student.setparamname(object.get("param_name"),object.get("param_value") );