improve: JSON generation in cfilter