add json output for the reduced pattern