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.
For the sake of ergonomics, since the value returned by
JSONValue::read_string()does not have escapes processed, a newtype wrapper, call itJSONString, should be returned instead. This would help prevent mistakes such as accidentally using the result as a fully processed string.