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 express interprets that incorrectly as

{ 'filter[airport]': 'LGW',
  'filter[from]': '2011-07-01' }

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

{ filter: 
   { [airport](/wiki/#airport): 'LGW',
     from: '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...

nodejs: Javascript (programming language of the internets) on the server side.

⬅️ :: ➡️

Paul Clarke's weblog - I live in Hythe near Folkestone. Wed to Clare + dad to 2, I am a full stack web developr, and I do mostly js / Node, some ruby, python, php ect ect. I like pubs, parkrun, eating, home-automation and other diy stuff, history, genealogy, Television, squirrels, pirates, lego, + TIME TRAVEL.