我的服务器中有一个JSON数据,如
[{ " list_of_query":[ 12, 13, 15, 1 ] "查询":[ { " query_count":12 }, { " list_of_query":[] } ]}]
当我需要更新JSON值时,这很正常,比如
[{ " list_of_query":[ 12, 13, 15, 1 ] " list_of_query2" {" QUERY1":1," QUERY2":2}, "查询":[ { " query_count":12 }, { " list_of_query":[] } ]}]
我尝试了类似推送操作的内容,
query_details = {DATA_FROM_SERVER}; query_details.push({" list_of_query2" {" QUERY1":1}});
但是,当我尝试这个时,它会用初始节点附加数据。等,
[{ " list_of_query":[ 12, 13, 15, 1 ] "查询":[ { " query_count":12 }, { " list_of_query":[] } ]},{" list_of_query2":{" query1":1}}]
如何解决这个问题?