neuecc / Utf8Json

Definitely Fastest and Zero Allocation JSON Serializer for C#(NET, .NET Core, Unity, Xamarin).
MIT License
2.36k stars 267 forks source link

Custom formatter for an object, with parameter-based rendering behavior #137

Closed yotamoron closed 5 years ago

yotamoron commented 5 years ago

Hi,

We need to render the same object in different ways (namely, add new lines if the customer asks for it). It is not clear from the documentation and examples how this can be achieved. I've been playing around with the code for a few hours now, and a little lost.

Is there an example you can point me to? How can I get it to do what I need?

Thanks.

yotamoron commented 5 years ago

I ended up creating my own json formatter resolver, and using it.