Need
FIELD like this, with ' and without , at the end of whole field.
{name:'color',value:'red'},{name:'width',value:'300 ml'}
Tried
string_agg(distinct '{name:\'' || param_name || '\',value:\'' || value || '\'},','') as "FIELD"
but error behind 2nd \
SQL Error [42601]: ERROR: syntax error at or near "\"
With , at the end of whole field, I don't know how to do that.
Thanks.