def jsontest @users = User.all.limit(10) render json: @users end
yields
{ ... \"id\": 7, \"name\": \"Sage Smith\", \"email\"
@andrewCone - It should be like this:
User.limit(:10).pluck_to_hash([:id, :name, :email, :created_at])