add support for object and json type