Pass through JSON data with JSON view

I’m not using the query builder. I’m working with a GIS system and running fairly complex spatial queries that Cake isn’t really suited to handle, so I’m executing queries directly from the statement handle. Because the DB is handling the JSON creation, the result set is a single row.

I merely want to pass that row back to the client with the correct content-type. But if I set the response type to ‘json’, the ORM wants to process it and actually create the JSON for me. That’s what I want to shut off.

Right now I’m having to return the data as text/plain, and have the JSON.parse function on the client create the actual object.