Format of the JSON returned by the Services module I have a big doubt about the JSON format the Services module (for Drupal 6) generates.

When I view the XML, all is OK.

&lt;result is_array="true"&gt;
 &lt;item&gt;
  &lt;nid&gt;9&lt;/nid&gt;
  &lt;vid&gt;9&lt;/vid&gt;
  &lt;type&gt;producto&lt;/type&gt;
 &lt;/item&gt;
&lt;/result&gt;


When I view the JSON, I see this:

[
 {
  "nid": "9",
  "vid": "9",
  "type": "producto",
 }
]


What I really is something like this:

[
 {
  "item":{
    "nid": "9",
    "vid": "9",
    "type": "producto",
  }
 }
]


How do I do this? Is there any configuration in the Services module that I can use to change the output, or do I need writing code?
I know the function to render JSON output.
You should implement hook_services_request_postprocess_alter().