title: Passing Lists as a QueryString - should I use JSON
body: <p>Lets say I've got an online dating site, users can filter the user list based on various criteria,  Height, Age, BodyType, Ethnic Origin....</p>
  
  <p>I want to pass the criteria to the pager, via QueryString.  Height and Age are easy as these are ranges, and I would use </p>
  
  <pre><code>MinHeight=3&amp;MaxHeight=12&amp;MinAge=21&amp;MaxAge=30
  </code></pre>
  
  <p>However other Criteria like BodyType and Ethnic orgins are Lists of ForeignKey values e.g:</p>
  
  <pre><code>Ethnitity:2,3,5
  </code></pre>
  
  <p>What is the best way to pass these as a QueryString?  Should I convert it to a Json string eg:</p>
  
  <pre><code>www.site.com?filterjson={\"minage\":0,\"maxage\":0,\"minheight\":0,\"maxheight\":0,\"bodytypelist\":[1,2,3],"ethnicitylist\":[2,3,4],\"eyecolorlist\":[],\"haircolorlist\":[],\"orientationlist\":[]}
  </code></pre>
  
  <p>Or is this not-valid/overkill/too complex?</p>
  
  <p>Maybe something like this:</p>
  
  <pre><code>MinHeight=3&amp;MaxHeight=12&amp;bodytypes=1,2,3&amp;
  </code></pre>
  
  <p>and parse the list values by splitting the ','?????</p>
  
  <p>I don't know the ups and downs of all these ideas.  So how would you pass a list of values in a querystring?</p>