If extended is false, you can not post "nested object" person[name] = 'cw' // Nested Object = { person: { name: cw } } If extended is true, you can do whatever way that you like.