pub fn section_entry_in(
content: &str,
base: &str,
entry: Value,
) -> Result<(String, Option<String>), String>Expand description
Where a section’s entry is, or goes, in widgets.json: under base if that key is free or
already opens this section, otherwise under the first free base-2, base-3, …, so a key the
user reused for something else is never handed back as this section’s. Returns the key and,
when the entry has to be added, the file’s new text. An absent or empty file is {}; one that
doesn’t parse is an error, so a file the user is halfway through editing is never rewritten.