(self, file_path: Path)
| 65 | return [] |
| 66 | |
| 67 | def parse(self, file_path: Path) -> str: |
| 68 | logger.info(f"Reading JSON file from {file_path}.") |
| 69 | try: |
| 70 | with open(file_path, "r") as f: |
| 71 | data = json.load(f) |
| 72 | text = str(data) |
| 73 | return text |
| 74 | except: |
| 75 | return '' |
| 76 | |
| 77 | class JSONLReader(Reader): |
| 78 | def parse_file(file_path: Path) -> list: |
nothing calls this directly
no outgoing calls
no test coverage detected