You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parsers and/or generators that handle non-JSON content often have additional features beyond core JSON features (and perhaps JSON format itself may, in future?).
Adding these in sub-classes for parser, generator, and JsonFactory works acceptably, but becomes problem at databinding level when trying to support per-call overrides for particular formats.
To support "general but specific" config features it is probably necessary to add a small set of supporting methods, so that ObjectWriter and ObjectReader can support overridability. This may include things like:
Introspection method for checking feature enum for format impl (to guard against mismatches)
Parser/Generator can have generic override (flags to set/clear with separate mask), possibly accessor
Parser/Generator base class can have format-feature field
ObjectReader/ObjectWriter can have methods for specifying overrides.
The text was updated successfully, but these errors were encountered:
Parsers and/or generators that handle non-JSON content often have additional features beyond core JSON features (and perhaps JSON format itself may, in future?).
Adding these in sub-classes for parser, generator, and
JsonFactory
works acceptably, but becomes problem at databinding level when trying to support per-call overrides for particular formats.To support "general but specific" config features it is probably necessary to add a small set of supporting methods, so that
ObjectWriter
andObjectReader
can support overridability. This may include things like:The text was updated successfully, but these errors were encountered: