original_docstring: After the scan is done, parse the output json file into a dict of the scan Findings.
          returns:
              - scan results.
          
docstring: After the scan is done, parse the output json file into a dict of the scan Findings.
  returns:
  scan results.
docstring_tokens: After the scan is done parse the output json file into a dict of the scan Findings . returns : scan results .
code: def _parse_result(self, output_file):
          """After the scan is done, parse the output json file into a dict of the scan Findings.
          returns:
              - scan results.
          """
          logger.info('scan is done, parsing the results from %s.', output_file.name)
          tsunami_result = json.load(output_file)
          json_result = {
              'vulnerabilities': []
          }
          if 'SUCCEEDED' in tsunami_result['scanStatus'] and 'scanFindings' in tsunami_result.keys():
              json_result['status'] = 'success'
              logger.info('scan status: SUCCEEDED')
              for vul in tsunami_result['scanFindings']:
                  json_result['vulnerabilities'].append(vul)
          else:
              json_result['status'] = 'failed'
          return json_result
code_tokens: def _parse_result ( self , output_file ) : logger . info ( 'scan is done, parsing the results from %s.' , output_file . name ) tsunami_result = json . load ( output_file ) json_result = { 'vulnerabilities' : [ ] } if 'SUCCEEDED' in tsunami_result [ 'scanStatus' ] and 'scanFindings' in tsunami_result . keys ( ) : json_result [ 'status' ] = 'success' logger . info ( 'scan status: SUCCEEDED' ) for vul in tsunami_result [ 'scanFindings' ] : json_result [ 'vulnerabilities' ] . append ( vul ) else : json_result [ 'status' ] = 'failed' return json_result
short_docstring: After the scan is done, parse the output json file into a dict of the scan Findings.
short_docstring_tokens: After the scan is done parse the output json file into a dict of the scan Findings .
comment: """After the scan is done, parse the output json file into a dict of the scan Findings.
          returns:
              - scan results.
          """