Add Object in json file generate by services module drupal
The JSON is generated by the RESTServerViewBuiltIn class in the services/servers/rest_server/includes/rest_server.views.inc file, specifically the render_json member function.

Services does provide a way to override this.

Firstly in a custom module implement hook_rest_server_response_formatters_alter and change the View class that's used to render the output to a custom one:

function MYMODULE_rest_server_response_formatters_alter(&amp;$formatters) {
  $formatters['json']['view'] = 'RESTServerViewMYMODULE';
}


Then add your custom View class (I'd keep this in the module file to avoid having to load includes):

class RESTServerViewMYMODULE extends RESTServerView {
  public function render() {
    $new_data = new stdClass;
    $new_data-&gt;some_key = $this-&gt;model;

    $json = str_replace('\\/', '/', json_encode($new_data));

    return $json;
  }
}


Hope that helps