victorteokw / query-string-parser

Rack style query string parser for Node.js
MIT License
8 stars 1 forks source link

Deeply nested objects don't get parsed correctly #1

Closed criles25 closed 6 years ago

criles25 commented 6 years ago

E.g., this object doesn't get parsed by Rack correctly

{ 
  filters: [ 
    { estimated_hours: { greater_than_or_equal_to: 2, less_than_or_equal_to: 10 } }, 
    { is_busy: false } 
  ]
}
victorteokw commented 6 years ago

Hi @criles25, this is the correct behavior.

By design, rack works this way.

Rack will not trying to convert 2 to number, and query-string-parser behaves the same with rack.