pub fn from_json<W: TLVWrite>(
w: &mut W,
tag: &TLVTag,
shape: Shape,
value: &Value,
) -> Result<(), ConvertError>Expand description
Encode a JSON value as TLV under tag, as shape says it should be.
Enumeration values may be given by name; octet strings are hex; structure fields by name or by tag number. Integers are written in the smallest TLV width that holds them, which every Matter reader accepts.