How to modify/add addition variable to service json after successfully register.json? I am able to get the response after register using service register.json

Response:

    {
        "uid": "10",
        "uri": "http://example.com/apps_api/user/10"
    } 


Input:


  { "name":"smart", "pass":"smart", "mail":"tushar@smalution.com",
  "status":"1", "roles":[ "3" ] }


I get all the information "uri": "http://example.com/apps_api/user/10" .
I just want to get the "name", "mail", "role" in response.

Do not need to go again "uri": "http://example.com/apps_api/user/10".
Add custom code/module to modify the service response, check hook_services_endpoint_response_alter and all other similar alter hooks services alter hooks

e.g.:

function MODULENAME_services_request_postprocess_alter($controller, $args, &amp;$result) {
  if ($controller-&gt;callback == '_user_resource_create') {
    if ($result-&gt;uid) {
      $user = user_load($result-&gt;uid);
      $result-&gt;user = $user;
    }
  }
}