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

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -