How to elegantly add data to JSON objects?

recently get a good tool to add a fiter to the button in form can get the form data d to get the JSON object, but also add some other data to the JSON how to elegantly implement?


for example, the data you obtained is

var data = {
    name: 'wang',
    sex: '0',
    age: 12
// = ''