pub(crate) fn to_json_generic_enum<I, C>(
    variant_snake_case: String,
    rest_of_stream: &mut I,
    type_name: &str,
    rti: &ReflectedTypeInfo,
    ctx: &mut C
) -> Result<String, String> where
    C: TestDeserializeContext,
    I: Iterator<Item = TokenTree>, 
Expand description

Converts the spec of an enum into deserializable JSON