pub fn json_parse_error<T>( result: Result<T, Error>, context: &str, ) -> Result<T, String>
Convenience function for consistent JSON parsing errors