add host object check to fix serialization of File/Blobs etc as json

when the content-type is json