json.extract! @post, :id, :created_at, :updated_at