Created
April 15, 2016 17:06
-
-
Save anonymous/70293b11a691ecab417eb099f9c9fef0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
url = "https://google.com" | |
link = '<a href="'+url+'">Link</a>' | |
data = Hash.new | |
data[:link] = link | |
File.write('out.json', JSON.pretty_generate(data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment