pub fn group_metadata_json(
text: &str,
bundle: Option<&str>,
) -> Result<(u32, String), DecodeError>Expand description
The group document read no further than its envelope: the profile, and
the selected bundle’s metadata block as compact JSON, selected as
parse_group_metadata_for selects it and refused without a bundle named
on a shared store. The block itself is not validated here. This is for a
reader that holds the block to the metadata rules with a validator of its
own, as the shell does; every other caller wants parse_group_metadata_for.
The JSON keeps the document’s key order only where serde_json keeps
insertion order (the encoder feature turns that on); otherwise the keys
come out sorted.