Struggling to include a new child within a specific child in Json
myObject:any[] = [];
this.myObject = {
"type": "object",
"properties": {
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
}
}
addField(){
this.myObject.properties.push({'email':{'type': 'string'}}); // unable to add
}
ERROR: TypeError - this.yourJsonSchema.properties.push is not a function