javascript add to a json object code example
Example 1: javascript append to json
let test = {
name: 'NN',
email: '[email protected]'
};
test.phone = '234654234';
// result { "name": "NN", "email": "[email protected]", "phone": "234654234" }
Example 2: add to json object javascript
object.property = value;