Currently I build a JSON object by doing:
@users = User.all @users.each do |user| @userlist << { :id => user.id, :fname => user.fname,
@userlist = @users.map do |u| u.attributes.merge!(:contacts=>current_user.contacts) end json = @userlist.to_json