add to_dict method to FileManger.
change FileManagerto_dict implements. Now the value of the dict is string instead of list.
Store source code into json file.