hipack
pub fn write<W>(writer: &mut W, value: &BTreeMap<String, Value>) -> Result<()> where W: Write,