pub fn json2sbp<R, W>(
    input: R,
    output: W,
    buffered: bool,
    fatal_errors: bool
) -> Result<()> where
    R: Read,
    W: Write