database that is as varchar
and I defined a class for that table
and set a string property for that column
and now I want to get that column and return the json array instead of string
what should I do ?
I mean for example deserialize that in property getter method
that in this case its not works because property type is string and deserialize returns string array
or "select new " from that class and then deserialize that property
???
Deserialize only requires a sting, not a string array.
no problem, solved it by define another property as string array and in getter method of this property deserialize that string property and also add JsonIgnore attribute to that string property ✅ As always I solve my problems myself 😊
Обсуждают сегодня