Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

C# class to JSON

$
0
0
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" }

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>