Fix json path to search query in template