var json = {}var i = 'name'json[i] = '111' // json = {name:111}json[i] = {}json[i][i] = 111 // json = {name: {name: 111}}console.log(json)