Fix search JSON bug noted by jeff becker.