Hi Friends,
I have json string like this;
"styles": [ { "class": "light","hover": { "fill": "#f4f4f4" },"active": { "fill": "#fff" }}]
I am trying to create a class like this
C#
Public class Styles
{
public string class {get;set;} //getting error in this line because class name
public string hover{get;set;}
public string active{get;set;}
}I need to assign this to the list
C#
Public List styles{get ; set ;}how to resolve the issue I am getting?
when I am trying to add static json string to the list getting \ in the json string.
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Mar 8, 2022, 9:27 AM EST