In ArcMap 10.7.1 (with an Oracle 18c SDE.ST_GEOMETRY polyline FC):
I want to use the Field Calculator (Python) in the Attribute Table to get a feature's JSON text.
Pre-Logic Script Code:
----------------------
def wJson(shp):
pnts = shp.JSON
return str(pnts)
Expression: JSON =
----------------------
wJson( !SHAPE! )
When I run that field calculation, I don't get an error, but it doesn't populate a value in the field (remains null).
What am I doing wrong? How can I get that field calculation to return a value?
JSON
property is already a string. So does callingstr()
on it have any effect?