Closed pkozuchowski closed 2 years ago
I would suggest removing the attributes to that should not be serialized. It seems nonsensical to me to pass an object and say "but don't actually serialize half of it".
(I do agree however that serializing functions as strings makes very little sense, these should be filtered out)
I need to serialize only part of JSON object to XML. The other attributes are metadata I need for processing.
I thought I could do that by hiding attributes in function, but the function is also serialized to xml using .toString() (I have doubts about usefulness of this behavior)
This is what I'd like to achieve:
Expected:
Actual:
Alternatively, processor functions for builder would be nice.