serde_json_core::ser
pub fn to_vec<T: ?Sized, const N: usize>(value: &T) -> Result<Vec<u8, N>> where T: Serialize,
Serializes the given data structure as a JSON byte vector