Solution to JSON and Sinatra challenge.