When i generate java code using raml maven plugin, It wraps my response with jersy response. And because of this while sending my response it contains metadata detail of response, How can i override this so that it will marshall only my response entity?


#1
{
  "length": -1,
  "language": null,
  "location": null,
  "mediaType": {
    "type": "application",
    "subtype": "json",
    "parameters": {},
    "wildcardType": false,
    "wildcardSubtype": false
  },
  "metadata": {
    "Content-Type": [
      "application/json"
    ]
  },
  "status": 200,
  "entity": {
    "name": "jyoti",
    "success": true
  },
  "lastModified": null,
  "date": null,
  "headers": {
    "Content-Type": [
      "application/json"
    ]
  },
  "cookies": {},
  "allowedMethods": [],
  "links": [],
  "statusInfo": "OK",
  "entityTag": null,
  "stringHeaders": {
    "Content-Type": [
      "application/json"
    ]
  }
}

#2

Bit late to this… just noticed it on the forum… are you using the RAML 2 JAXRS maven plugin?