store searches in json format