pub trait Encoder {
// Required method
fn encode(&mut self, idx: usize, out: &mut Vec<u8>);
}Expand description
A trait to format array values as JSON values
Nullability is handled by the caller to allow encoding nulls implicitly, i.e. {} instead of {"a": null}