JSON.Net How to Serialize Dictionary<Enumeration, Enumeration>? -
json.net how serialize dictionary ?
or dictionary, myclass contains 2 enumeration?
try with:
var requsers = user in users select new { username = user.username, firstname = user.firstname, lastname = user.lastname, email = user.email }; var json = jsonconvert.serializeobject(new { users = requsers });
json
No comments:
Post a Comment