java - Read array of unknown objects in REST service -


how write rest service below data post request? templates can have data, array of data.

{    "name":"jose",    "surname":"john",    "templates":[       {          "template1":"333",          "any":"any"       },       {          "anything":"anything",          "test":"tafsasdf"       }    ] } 

cxf knows how convert such string nested map<string, object>. need have jackson libraries in classpath , annotate server method @requestbody.

something this:

@requestbody public void somemethod(map<string, object> json objects) {      // code here } 

Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -