Closed hasanbayatme closed 7 years ago
Please explain more what you mean.
The whole purpose of fastJSON
is that surrogates are not needed.
But sometimes, some classes don't need the some properties to be serialized. we need a surrogate for specifying which properties to be serialized.
Use XmlIgnore
attribute for those properties you don't want to serialize.
I don't have access to the class.
EDIT: it is a compiled binary. (Unity Game Engine)
I can't modify class source code. because the class is related to the unity game engine, i just want to serialize it to json format.
Try and see what happens.
What do i try? How do i apply XmlIgnore attribute to a closed source?
Try your surrogates.
How? does fastjson supports surogate selector?
Does fastJSON supporting Surrogate Serialization?
If not, let us know.
Thanks.