我想得到一个如下的 JSON:
myJson = {"QC": ["city1","city2"], "NU": ["city3", "city4"], "FO": ["city5","city6"]};
我从数据库中获取数据,结构如下:
id province city
1 QC city1
2 NU city3
3 FO city5
4 NU city4
5 QC city2
6 FO city6
坦克非常适合小费