parse_json.py 418 Bytes
Newer Older
moden's avatar
moden committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
"""
Write a parser for simple.json file.
Print a person name his(her) friend names in format:

====================
Mildred Eaton
  Marquez Hall
  Potts Giles
  Noelle Mcneil
====================
Edna Duffy
  Mcgee Stanton

...
"""


def parser(filename):
    # Your code here
    pass


def main():
    # parse command line with filename
    filename = ''
    parser(filename)


if __name__ == '__main__':
    main()