Adding support for JSON document types