请问JSON怎么存放公共元素,类似{"firstname":"John","lastname":["Bob","Smith"]},我希望firstname公共
问题描述:
请问JSON怎么存放公共元素,类似{"firstname":"John","lastname":["Bob","Smith"]},我希望firstname公共
答
单独提出来{ "firstname":"John","lastnames":[{"lastname":"Smith"},{"lastname":"XXX"}]}