Am I able to return a record from an endpoint

Continuing the discussion from Parse JSON returned from XData back into an Object:

This is at the Client. What do I do at the Server end, in my endpoint code?

That is just a regular XData endpoint (service operation) as explained in the documentation and all the examples around that use service operations:

Actually that is valid for early all XData endpoints, all of them return JSON unless you specify otherwise.