我有两个JSON对象。 这是第一个JSON
{
"listings": [
{
"city": "Kingsland",
"subdivision": "Kingsland Cove"
}
]
}
这是第二个JSON:
{
"listings": [
{
"city": "Sunrise Beach",
"subdivision": "Sunrise Beach"
}
]
}
如何在PHP中合并这两个代码并产生
{
"listings": [
{
"city": "Kingsland",
"subdivision": "Kingsland Cove"
},
{
"city": "Sunrise Beach",
"subdivision": "Sunrise Beach"
}
]
}
请指导我。