title: Pgadmin query result vs application query result has added text
body: <p>I have nearly a thousand features in a table in my database that I want to query and aggregate as a single feature collection in a geojson file which I'm successfully doing using the following query:</p>
  <pre><code>SELECT jsonb_build_object(
      'type',     'FeatureCollection',
      'features', jsonb_agg(features.feature)
  )
  FROM(
      SELECT jsonb_build_object(
      'type',       'Feature',
      'id',         parcelid,
      'geometry',   ST_AsGeoJSON(ST_GeometryN(geom,1))::jsonb,
      'properties', to_jsonb(inputs) - 'parcelid' - 'geom'
  ) as feature 
      FROM (SELECT * FROM parcels2020) inputs) features;
  </code></pre>
  <p>When I use this query in pgadmin, everything is queries fine a, a brief example of the result is</p>
  <pre><code>{&quot;type&quot;:&quot;FeatureCollection&quot;,&quot;features&quot;:[{&quot;id&quot;:&quot;14F0035  LL0435&quot;,&quot;type&quot;:&quot;Feature&quot;,&quot;geometry&quot;:{&quot;type&quot;:&quot;Polygon&quot;,&quot;etc
  </code></pre>
  <p>However when I use my application to perform this same query my result has the text &quot;json_build_object&quot; added to it like the example below.</p>
  <pre><code>[{&quot;json_build_object&quot;:{&quot;type&quot;:&quot;FeatureCollection&quot;,&quot;features&quot;:[{&quot;id&quot;:&quot;14F0035  LL0435&quot;,&quot;type&quot;:&quot;Feature&quot;,&quot;geometry&quot;etc
  </code></pre>
  <p>This is stopping me from being able to map the geometries of my parcels since the json is no longer being seen as a valid json. Is there a way to perform my query and not get additional text</p>