add support for json type