Make problem as JSON string