How to get an element query into json (for vue) without extra data?
You can use the asArray function to return arrays instead of elements

{% set sections = craft
    .categories
    .group('teamCategory')
    .select(['title','elements.id','groupId'])
    .asArray()
    .all() 
%}