Blog2011 ≫ install perry FTW!

query string is this http://localhost:5000/hotels?filter[airport]=LGW&filter[from]=2011-07-01&filter[room_type]=D20

nodejs 1 express interprets that incorrectly as

{ 'filter[airport]': 'LGW',
  'filter[from]': '[2011](/wiki/#2011)-07-01' }

So I have to use Perry to get it correctly interpreted as

{ filter: 
   { [airport](/wiki/#airport): 'LGW',
     from: '[2011](/wiki/#2011)-07-01' } }

Something is not right here as it seems to work ok for some people, but not everyone...

Sorry boring tech stuff again...

  1. Javascript (programming language of the web) on the server side.

⬅️ :: ➡️

Paulʼs blog - I live in A sleepy town in Kent. Wednesday + dad to two, I'm a full-stack web engineer, + I do js / nodejs, some ruby, python, php ect ect. I like pubbing, parkrun, eating, home-automation and other diy jiggery-pokery, history, tree stuff, television, squirrels, pirates, lego, and TIME TRAVEL.