How to export data from LinqPAD as JSON?
I want to create a JSON file for use as part of a simple web prototyping exercise. LinqPAD is perfect for accessing the data from my DB in just the shape I need, however I cannot get it out as JSON very easily. I don't really care what the schema is, because I can adapt my JavaScript to work with whatever is returned. Is this possible? A more fluent solution is to add the following methods to the "My Extensions" File in Linqpad: public static String DumpJson<T>(this T obj) { return obj .ToJson() .Dump(); } public static String ToJson<T>(this T obj) { return new System.Web.Script.Serialization