What does 'extended' mean in express 4.0?

KimCrab picture KimCrab · Apr 30, 2015 · Viewed 48.5k times · Source

I'm using express and also body-parser in my app.

app.use(bodyParser.urlencoded({ extended: false }));

But, What does 'extended' mean in express 4.0?

I found this

extended - parse extended syntax with the qs module.

However, I still can't understrand what it means.

Answer

Wayne Chiu picture Wayne Chiu · Sep 29, 2016

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.