pub fn type_hint_from_json(text: &str) -> Result<String, ParseError>Expand description
Returns the single root key of an OMS JSON object.
That key is the type hint the engine matches on. This does not validate UCI and does not walk nested members.
ยงErrors
Returns a parse error (labelled as PUB) if text is not an
object with exactly one member.