Query strings and JSON

Preserve repeated parameters, empty values and order with an array of pairs.

Parameters to JSON example
Example input
q=a&q=b
Example output
[
  [
    "q",
    "a"
  ],
  [
    "q",
    "b"
  ]
]