added json decode for search params