聚合JSON输出

时间:2016-05-03 08:43:00

标签: php json

我在PHP上有一个JSON输出,如:

[{"Title":"Message","count":"380","Number":"600"}]

如何获得如下结果?

"Column 'examplecolumn' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause."

1 个答案:

答案 0 :(得分:0)

在php中:

json_encode(array_merge(json_decode($a, true),json_decode($b, true)))

参考:example