Hi,
is there an easy way to serialize an C# class to an JSON-object?
public class UserData {
public string username;
public string password;
public UserData(string username,string password) {
this.username=username;
this.password=password;
}
}
should later look like as JSON:
{
"username":"abc",
"password":"xxx"
}
↧