You are getting this error because there isn't
Json
class available in .Net framework and do you don't seem to have created a class with that name in your project or the assemblies you have referenced.
It seems you are trying serialize the data in Json format. Your options are:
i) Just return a string which is in Json format. So you will have to change your return statement to valid Json string (name value pair).
ii) Use a Json library to serialize/de-serialize you string to Json objects. One such library is
Json.NET[
^]
Hope that helps!