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”
}

I think you should look at the UnitySerializer on the Asset Store (it’s free).
I think it does that.