`JSONValue::read_string()` should return a newtype wrapper
Muon opened this issue · comments
Mak Nazečić-Andrlon commented
For the sake of ergonomics, since the value returned by JSONValue::read_string()
does not have escapes processed, a newtype wrapper, call it JSONString
, should be returned instead. This would help prevent mistakes such as accidentally using the result as a fully processed string.