add json printing for searches