Filter JSON path by rules