I'm writing a script to generate a UniqueValueRenderer from scratch using
arcpy.cim.CreateCIMObjectFromClassName('CIMUniqueValueRenderer','V3')
Since this object contains a lot of other CIM objects, I have to make all those as well, but somewhere in there I'm missing something so when writing it into the layer definition, Pro will crash.
Is there a way I can take my newly created CIMUniqueValueRenderer object and convert it to a JSON string so I can see what it contains?
I found a reference to a function GetJSONForCIMObject in another post, but can find no such function in the ArcPy documentation.