Move the Object type in the lib.rs file and use it everywhere

This commit is contained in:
Kerollmops
2022-06-15 15:36:27 +02:00
parent 0146175fe6
commit fcfc4caf8c
11 changed files with 43 additions and 51 deletions

View File

@ -21,7 +21,7 @@ pub fn read_json(input: impl Read, writer: impl Write + Seek) -> Result<usize> {
let writer = BufWriter::new(writer);
let mut builder = DocumentsBatchBuilder::new(writer);
let values: Vec<Map<String, Value>> = serde_json::from_reader(input)?;
let values: Vec<Object> = serde_json::from_reader(input)?;
if builder.documents_count() == 0 {
bail!("Empty payload");
}