I have a REST API with uri :
POST
/version/path/generic
Consumes : Application/JSON
The JSON can be of different format. Any valid JSON can be input of this API. So to support this in the webmethod, how can we map it in JAVA ?
String
Object
MAP
Not getting proper json in any of the above formats ?