Outputing a json file in drupal 6
Use Services Views

After enabling that resource you would be able to do call to

http://example.com/&lt;endpoint path&gt;/&lt;resource name&gt;


After enabling "views" resource in your services endpoint you can do GET request to:

http://example.com/&lt;endpoint path&gt;/views/&lt;view name&gt;


This will execute a view and pass results.

Possible arguments:
- display_id: views display
- args: array of view arguments
- filters: array of view filter values
- offset: views offset
- limit: limit views number of results
- format_output: boolean whether we would like to get themed view or data


Example of calls:

http://example.com/rest/views/articles?limit=5&amp;offset=2&amp;filters[tags]=5
http://example.com/rest/views/articles?filters[tags]=5&amp;display_id=block_1&amp;format_output=1