I have an object like this:
var queryObject= { name: \'Shwetanka\', subjects: [\'Mathematics\', \'Physics\', \'Computers\'], stream: \'scie
I've found the solution. I just have to pass 'traditional=true' in $.param(queryObject, true). This generates the query string i want.
$.param(queryObject, true)