I want to convert deep JSON to URL params string. I have json:
{ filter: { dir: 184}, b:'a'}
and
{ filter: [1,2,3], b:'a'}
So I want the result string like this:
 filter[dir]=188&b=a
 filter[]=1&filter[]=2&filter[]=3&b=a
How to do this in JavaScript (not Jquery)?
 
     
     
    