Importing a JSON object into MongoDB - java : while ((line = br.readLine()) != null) {
		       Document document = Document.parse(String.format("{\"a\": %s}", line));
		       
		       for(Document doc : document) {
		    	   docs.add(new InsertOneModel<Document>(doc));
		       }
I am getting the error in the for loop (for Document doc : document) as "can only iterate over an array or an instance of java.lang.Iterable. Can anyone please help