pub(crate) fn json_map_to_hashmap( map: &Map<String, Value>, ) -> Result<HashMap<String, MpvDataType>, MpvError>