- Home /
Question by
marius.treu · Mar 23, 2013 at 01:29 PM ·
c#serializationjson
C# class to JSON
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" }
Comment
Since it seems to have solved your issue I am closing that question.
Best Answer
Answer by fafase · Mar 23, 2013 at 01:30 PM
I think you should look at the UnitySerializer on the Asset Store (it's free). I think it does that.