src/Utils.rb
# Insert map into json file in param
#
# @param path [String, #read] the path of json file
# @param map [Hashmap, #read] the json to save in json file

Insert map into json file in param
Insert map into json file in param
def insertJsonIntoFile(path, map)
    File.open(path,"w+") do |f|
      f.write(map.to_json)
    end
  end
def insertJsonIntoFile ( path , map ) File . open ( path , "w+" ) do | f | f . write ( map . to_json ) end end
Insert map into json file in param
Insert map into json file in param
path
the path of json file
the path of json file
map
the json to save in json file
the json to save in json file