562 sep = use_line_feeds ?
",\n " :
",";
564 appendStringInfoChar(result,
'[');
566 for (i = 1; i <= dims[dim]; i++)
569 appendStringInfoString(result, sep);
571 if (dim + 1 == ndims)
573 datum_to_json(vals[*valcount], nulls[*valcount], result, tcategory,
584 valcount, tcategory, outfuncoid,
false);
588 appendStringInfoChar(result,
']');
static void array_dim_to_json(StringInfo result, int dim, int ndims, int *dims, Datum *vals, bool *nulls, int *valcount, JsonTypeCategory tcategory, Oid outfuncoid, bool use_line_feeds)
static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid, bool key_scalar)