Fallback for handling general java.lang.Object types in json serialization
Accepting also YAML configuration files