json.array!(@articles) do |article| json.extract! article, :id, :title, :content, :rate, :active, :created_by, :updated_by json.url article_url(article, format: :json) end