JSON To Features (Conversion)

License Level:BasicStandardAdvanced

Summary

Converts JSON features based on ArcGIS REST API specification into a feature class. The feature class will have fields, geometry type, and spatial reference as defined in the JSON.

Usage

Syntax

JSONToFeatures_conversion (in_json_file, out_features)
ParameterExplanationData Type
in_json_file

The JSON file (.json) to convert.

File
out_features

The output feature class to create.

Feature Class

Code Sample

JSONToFeatures example

The following Python script demonstrates how to use the JSONToFeatures function.

import arcpy
import os
arcpy.env.workspace = "c:/data"
arcpy.JSONToFeatures_conversion("myjsonfeatures.json", os.path.join("outgdb.gdb","myfeatures"))

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Yes
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
3/3/2014