json-iterator/go

Feature request - Always omitEmpty

rikatz opened this issue · 0 comments

Hi, thanks for the project!

I was wondering if is there any option or feature in progress that can always add omitEmpty to the struct. We have a pretty big structure, with a bunch of nested fields and some of them sometimes are empty.

We can migrate and add omitEmpty in all of them, but having some option that automatically omits all empty structs may be easier :) If not, we can implement the omitEmpty in our structs anyway!

Thank you once more!