Fix json importer for --file by extracting document_extension