fn emit_attrs(j: &mut Json, levels: &[(&Option<Attrs>, Option<u32>)])
One {...} merging the attributes of several levels, most specific last.
{...}