Converted url search from array to object