How to return JSon object
First of all, there’s no such thing as a JSON object. What you’ve got in your question is a JavaScript object literal (see here for a great discussion on the difference). Here’s how you would go about serializing what you’ve got to JSON though: I would use an anonymous type filled with your results type: … Read more