key, startkey and endkey params accepts any valid JSON types

Thanks @zemirco for the report.