node.jsexpressbody-parser

What does 'extended' mean in express 4.0?


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.


Solution

  • 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.