One option is using a JSON format.
http://server/url?array=["foo","bar"]
Server side
var arr = JSON.parse(req.query.array);
Or your own format
http://server/url?array=foo,bar
Server side
var arr = req.query.array.split(',');
More Related Contents:
- static files with express.js
- Extend Express Request object using Typescript
- How can I set cookie in node js using express framework?
- Difference between app.use and app.get in express.js
- MongoDB/Mongoose querying at a specific date?
- express logging response body
- What is the parameter “next” used for in Express?
- First Heroku deploy failed `error code=H10`
- Expressjs raw body
- When to use next() and return next() in Node.js
- How to populate a sub-document in mongoose after creating it?
- passport’s req.isAuthenticated always returning false, even when I hardcode done(null, true)
- mongoose custom validation using 2 fields
- req.query and req.param in ExpressJS
- NodeJS / Express: what is “app.use”?
- Proxy with express.js
- Redirect all trailing slashes globally in express
- Docker – SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306
- Catch all uncaughtException for Node js app
- Nodejs HTTP and HTTPS over same port
- Passing an object to client in node/express + ejs?
- What is Express.js? [closed]
- ENOENT: no such file or directory .?
- Mongoose – caused by :: 11000 E11000 duplicate key error index?
- Route.get() requires callback functions but got a “object Undefined”
- Why can’t we do multiple response.send in Express.js?
- Node.js: how to limit the HTTP request size and upload file size?
- Displaying an image with EJS in node.js/express
- node.js, Error: Cannot find module ‘express’
- How to store a file with file extension with multer?