Split a URL or a raw ?a=1&b=2 into keys. Duplicate keys become arrays. Build the other way from JSON. Uses the platform URLSearchParams — stays on this device.
?a=1&b=2