java - How can I pass the value from angular to rest for map<string, string> field object on the rest? -
i have rest method take object parameter map field.
class myclass{ map<string, string>; set }
and rest method. take object parameter:
@post public response test(myclass myclass){ }
on client doing ajax request passing parameters json. example:data: json.stringify({objectfield:$scope.example})
. have string on client such as:
property:value property1:value1...propertyn:valuen.
i want pass on server side on server side map with properties in object myclass.
Comments
Post a Comment