import csv  
import json  
  

f = open( '/Users/kevindavis/Desktop/ProjectsFolder/Chaos_Search/ServiceNowLogs.csv')  

reader = csv.DictReader( f, fieldnames = ( "AlertID","Alias","TinyID" ))  

out = json.dumps( [ row for row in reader ] )  
print("Your JSON has been parsed!")

f = open( '/Users/kevindavis/Desktop/ProjectsFolder/Chaos_Search/serviceNowOut.json', "a")  
f.write(out)  

print("And now your JSON has been saved!  YEAH YEAH")  
f.close()

df6ed9cf69ba0eab2dca4c64a8ab68d7e8f29519
<mask token>

<mask token>
print('Your JSON has been parsed!')
<mask token>
f.write(out)
print('And now your JSON has been saved!  YEAH YEAH')
f.close()

<mask token>
f = open(
    '/Users/kevindavis/Desktop/ProjectsFolder/Chaos_Search/ServiceNowLogs.csv')
reader = csv.DictReader(f, fieldnames=('AlertID', 'Alias', 'TinyID'))
out = json.dumps([row for row in reader])
print('Your JSON has been parsed!')
f = open(
    '/Users/kevindavis/Desktop/ProjectsFolder/Chaos_Search/serviceNowOut.json',
    'a')
f.write(out)
print('And now your JSON has been saved!  YEAH YEAH')
f.close()

import csv
import json
f = open(
    '/Users/kevindavis/Desktop/ProjectsFolder/Chaos_Search/ServiceNowLogs.csv')
reader = csv.DictReader(f, fieldnames=('AlertID', 'Alias', 'TinyID'))
out = json.dumps([row for row in reader])
print('Your JSON has been parsed!')
f = open(
    '/Users/kevindavis/Desktop/ProjectsFolder/Chaos_Search/serviceNowOut.json',
    'a')
f.write(out)
print('And now your JSON has been saved!  YEAH YEAH')
f.close()

import csv  
import json  
  

f = open( '/Users/kevindavis/Desktop/ProjectsFolder/Chaos_Search/ServiceNowLogs.csv')  

reader = csv.DictReader( f, fieldnames = ( "AlertID","Alias","TinyID" ))  

out = json.dumps( [ row for row in reader ] )  
print("Your JSON has been parsed!")

f = open( '/Users/kevindavis/Desktop/ProjectsFolder/Chaos_Search/serviceNowOut.json', "a")  
f.write(out)  

print("And now your JSON has been saved!  YEAH YEAH")  
f.close()
