I have json schema:
var data_json {
"protocol": {
"protocol_descr": {
"protocol_name": "test"
},
"protocol_body": {
"group": {
"group_name": "test group",
"position_info": {
"position_name": "1",
"position_type": "tags",
"position_value": "some,value",
"data-free":"false",
"data-type":"false",
"data-optional":"false"
}
}
}
}
}
How add one more group to "protocol_body" ? I try to use next construction - data_json.protocol.protocol_body.push(), but it's not work.