require 'ramaze'
require 'json'

class MainController < ::Ramaze::Controller

Ramaze::Route[%r{^/foo$}] = '/index'

provide :json, :type => 'application/json' do |action, value|
value.to_json
end

def index
@items = %w( a b c )
end

end

Ramaze.start