172 hold a list containing details about the error/ warnings |
173 hold a list containing details about the error/ warnings |
173 (file name, line number, column, codestring (only at syntax |
174 (file name, line number, column, codestring (only at syntax |
174 errors), the message, a list with arguments for the message) |
175 errors), the message, a list with arguments for the message) |
175 @rtype dict |
176 @rtype dict |
176 """ |
177 """ |
177 import json |
|
178 |
|
179 codestring = normalizeCode(codestring) |
178 codestring = normalizeCode(codestring) |
180 |
179 |
181 try: |
180 try: |
182 json.loads(codestring) |
181 json.loads(codestring) |
183 except json.JSONDecodeError as exc: |
182 except json.JSONDecodeError as exc: |