json_filter holds pointer rather than reference