finishing JSO filter and JSON document type recognition