refine params
each category is an array
sending json