#-*- coding: utf-8 -*-#---------------------------------------------------------------------------#JSONToSHP.py#Created on: 2014-09-01 22:00:00.00000# #Description:#---------------------------------------------------------------------------
importosimportjsonimportarcpy
jsonFile='E:/New Text Document.txt'arcpy.env.workspace= "E:/output"outpath= "E:/output"outname= os.path.split(jsonFile)[1].split('.')[0] + ".shp"
printoutname
fileObject= open(jsonFile, 'r')
jsonText=fileObject.read()
fileObject.close()
featureSet=json.loads(jsonText)
geometryType= featureSet["geometryType"]#geometry_type = "POINT"
if geometryType == "esriGeometryPolygon":
geometry_type= "POLYGON"
elif geometryType == "esriGeometryPolyline":</