<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: PostgreSQL: Using json_agg() aggregate table data into a JSON formatted array	</title>
	<atom:link href="https://www.dbrnd.com/2016/03/postgresql-using-json_agg-aggregate-table-data-into-a-json-formatted-array/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com/2016/03/postgresql-using-json_agg-aggregate-table-data-into-a-json-formatted-array/</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Thu, 08 Aug 2019 06:32:24 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Rajesh		</title>
		<link>https://www.dbrnd.com/2016/03/postgresql-using-json_agg-aggregate-table-data-into-a-json-formatted-array/#comment-7637</link>

		<dc:creator><![CDATA[Rajesh]]></dc:creator>
		<pubDate>Thu, 08 Aug 2019 06:32:24 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2173#comment-7637</guid>

					<description><![CDATA[Hi Anvesh,

i am trying to get rid of default column header like f1, f2 ...

lets say if we have single column it gives result without header (f1)
but if we include 

SELECT json_agg((ID,DepartName)) AS JsonArray FROM tbl_TestJSON;

output will be..

[{&quot;f1&quot;:1,&quot;f2&quot;:&quot;Sales&quot;},  {&quot;f1&quot;:2,&quot;f2&quot;:&quot;Production&quot;}]

what should i do to remove f1 &#038; f2 and only get values (remember i don&#039;t want custom column header)

Thx in advance.]]></description>
			<content:encoded><![CDATA[<p>Hi Anvesh,</p>
<p>i am trying to get rid of default column header like f1, f2 &#8230;</p>
<p>lets say if we have single column it gives result without header (f1)<br />
but if we include </p>
<p>SELECT json_agg((ID,DepartName)) AS JsonArray FROM tbl_TestJSON;</p>
<p>output will be..</p>
<p>[{&#8220;f1&#8243;:1,&#8221;f2&#8243;:&#8221;Sales&#8221;},  {&#8220;f1&#8243;:2,&#8221;f2&#8243;:&#8221;Production&#8221;}]</p>
<p>what should i do to remove f1 &amp; f2 and only get values (remember i don&#8217;t want custom column header)</p>
<p>Thx in advance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anvesh Patel		</title>
		<link>https://www.dbrnd.com/2016/03/postgresql-using-json_agg-aggregate-table-data-into-a-json-formatted-array/#comment-5431</link>

		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sun, 18 Dec 2016 13:15:35 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2173#comment-5431</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.dbrnd.com/2016/03/postgresql-using-json_agg-aggregate-table-data-into-a-json-formatted-array/#comment-5427&quot;&gt;eri&lt;/a&gt;.

Not available right now]]></description>
			<content:encoded><![CDATA[<p>Not available right now</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: eri		</title>
		<link>https://www.dbrnd.com/2016/03/postgresql-using-json_agg-aggregate-table-data-into-a-json-formatted-array/#comment-5427</link>

		<dc:creator><![CDATA[eri]]></dc:creator>
		<pubDate>Fri, 16 Dec 2016 05:42:39 +0000</pubDate>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2173#comment-5427</guid>

					<description><![CDATA[what is the equivalent in mysql?]]></description>
			<content:encoded><![CDATA[<p>what is the equivalent in mysql?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
