//ROUTE: ../plugin/test-config public static string test_config() { // This method should contact the lab to verify its configuration test_report report = new test_report { valid = true, error_messages = "Message goes here" }; var javaScriptSerializer = new System.Web.Script.Serialization.JavaScriptSerializer(); string jsonString = javaScriptSerializer.Serialize(report); return(jsonString); }
//ROUTE: ../plugin/test-config public static string test_config() { // This method should contact the lab to verify its configuration test_report report = new test_report { valid = true, error_messages = "Message goes here" }; var javaScriptSerializer = new System.Web.Script.Serialization.JavaScriptSerializer(); string jsonString = javaScriptSerializer.Serialize(report); return jsonString; }