Question by
Futurristic · Jan 27, 2017 at 07:31 AM ·
serializationjsonlitjson
how to exclude selected public variables to serialize in class?
Hi, I am using LitJson libraries. I have a class with some pubic variabels in which i want to write some specific public variables to json object. And exclude other public members. How can i achieve this?
Comment
Exclusion is usually done with the Attribute NonSerialized. I don't know how LitJson works, but if it respects .NET serialization, that should work.