Adding support for JsonSerializable objects in the domain object decorator