pretty json in sinatra and rails