pub fn json_string_len<E: Copy>(value: &str, error: E) -> Result<usize, E>
Returns the checked encoded length of a complete JSON string.