added json gem to Gemfile, added methods to search_api model