Add search json method to views