chore(filter/dto): use helper method to convert json to string

related to CAM-2632, CAM-2660