Support for serialize_as_any
runtime setting
#8830
Merged
serialize_as_any
runtime setting
#8830