def unserialize(path)
      if File.exists?(path) && !File.zero?(path)
        begin
          return JSON.parse(IO.binread(path))
        rescue JSON::ParserError => e
          puts e
        end
      end 
    end
def unserialize(path)
      if File.exists?(path) && !File.zero?(path)
        begin
          return JSON.parse(IO.binread(path))
        rescue JSON::ParserError => e
          puts e
        end
      end 
    end
unserialize a json file to a ruby object

 path - file path

 Returns a ruby object or nil