Modify build_json to create new json_file objects