In Ruby read json file to hash can be achieved using File Handling. Example to parse json file to hash is illustrated with this tutorial.
Read this post on rubyinrails.com