pub fn to_bytes_with_limit<T>(value: &T, limit: usize) -> Result<Vec<u8>>where T: ?Sized + Serialize,
Same as to_bytes but use limit as max container depth instead of MAX_CONTAINER_DEPTH Note that limit has to be lower than MAX_CONTAINER_DEPTH
to_bytes
limit