(json_string)
| 49 | |
| 50 | |
| 51 | def parse_semi_formatted_json(json_string): |
| 52 | |
| 53 | obj = None |
| 54 | |
| 55 | try: |
| 56 | response = refine_json(json_string) |
| 57 | print(response) |
| 58 | obj = json5.loads(response) |
| 59 | |
| 60 | except Exception as e: |
| 61 | raise e |
| 62 | |
| 63 | return obj |
| 64 | |
| 65 | def parse_semi_formatted_xml(text): |
| 66 | text = text.strip().replace('\r', '').replace('\t', '').replace('\n', '') |
nothing calls this directly
no test coverage detected