It's part of AuthData class:
[Serializable]
public class AuthData :IAuthData
{
[JsonProperty("USER_ROLES"), DataMember(Name = "USER_ROLES")]
public String roles { get; protected set; }
[JsonProperty("USER_ATTRIBUTES"), DataMember(Name = "USER_ATTRIBUTES")]
public IUserAttributes userAttributes { get; protected set; }
It's UserAttributes class:
[Serializable]
public class UserAttributes : IUserAttributes
{
private static long serialVersionUID = 1L;
private static Gson gson = new Gson();
//[JsonProperty("")]
private List<Dictionary<string, List<JValue>>> tuples = new List<Dictionary<string, List<JValue>>>();
Serialized object:
"USER_ROLES": " sysadmin", "USER_ATTRIBUTES": {
"tuples": [{
"Department": [""],
"Colors": ["blue", "green", "red"],
"City": ["RamatGan"]
}]
}...
I need the serialized object to be:
"USER_ROLES": " sysadmin", "USER_ATTRIBUTES": [{
"Department": [""],
"Colors": ["blue", "green", "red"],
"City": ["RamatGan"]
}]
}...
How can I do it?