Limiting entries object when using as json_encode I'm building a JSON array of several thousand entries using the following entries query:
{% set services = craft.entries.section('services').asArray().all() %}
The problem is there some private info is visible within the JSON and can be viewed in the browser source (not to mention the result is HUGE.
let services = {{ services | json_encode | raw }};
Is there a parameter similar to ids() where I can specify only the title, url, and ID?
If not, what's the best Twig way to reduce this array to what I'm looking for?
As per the docs:

Element queries are specialized query builders under the hood, so they
support most of the same methods provided by craft\db\Query.

...So, in your case you could use select() to only select the fields you want:
{% set services = craft.entries.section('services').asArray().select(['title','id','url']).all() %}