How would like a class that will return a json format.
This method work Great in the controller but when I want to put in a Class, the Json object don\'t seem to exi
For me this worked (mind the change of the return type to Object):
public Object Test() { return new { errMsg = "test" }; }