def jsontest @users = User.all.limit(10) render json: @users end
yields
{ ... \"id\": 7, \"name\": \"Sage Smith\", \"email\"
Use select instead of pluck:
select
pluck
def jsontest @users = User.select('id, name, email, created_at').limit(10) render json: @users end