rpgmaker / NetJSON

Faster than Any Binary? Benchmark: http://theburningmonk.com/2014/08/json-serializers-benchmarks-updated-2/
MIT License
225 stars 29 forks source link

Ignore object properties #235

Closed isabr85 closed 3 years ago

isabr85 commented 3 years ago

How can I ignore object properties in serialization action? Is that possible?

rpgmaker commented 3 years ago

Have you looked into using the following if you want your own custom logic.

https://github.com/rpgmaker/NetJSON/wiki/Quick-Guide

NetJSON.CanSerialize

https://github.com/rpgmaker/NetJSON/blob/master/NetJSON.Tests/SerializeTests.cs#L1405

https://github.com/rpgmaker/NetJSON/blob/master/NetJSON.Tests/SerializeTests.cs#L2196-L2204

rpgmaker commented 3 years ago

The answer is in the link I gave above.