def _get_json_contents(fpath: Union[Path, str]) -> List[Tuple[str, str]]:
        """Extract file contents from '.json' file. JSON files should be formatted as list with dicts
        which contain 'title' and 'doc' keywords.

        Args:
            fpath: path to a '.json' file.

        Returns:
            a list with tuples of normalized file name and file contents

        """
        docs = []
        with open(fpath, encoding='utf-8') as fin:
            for line in fin:
                data = json.loads(line)
                for doc in data:
                    if not doc:
                        continue
                    text = doc['text']
                    normalized_text = unicodedata.normalize('NFD', text)
                    docs.append((doc['title'], normalized_text))
        return docs
Extract file contents from '.json' file. JSON files should be formatted as list with dicts
        which contain 'title' and 'doc' keywords.

        Args:
            fpath: path to a '.json' file.

        Returns:
            a list with tuples of normalized file name and file contents

        
deeppavlov/dataset_readers/odqa_reader.py