ClassCastException if not using JSONDocument

Good idea, I filed a docs ticket to track it: https://issues.couchbase.com/browse/JCBC-848