<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: arcpy.JSONToFeatures_conversion in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149830#M63920</link>
    <description>&lt;P&gt;Good eye.&amp;nbsp; Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attempting to transform a XML response from a non-spatial api that I've got to basically rebuild into well-formatted json and it looks like I've got an improper list-build process going on somewhere that generates the json.&amp;nbsp; Your correction looks like it should work.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2022 19:55:45 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2022-03-02T19:55:45Z</dc:date>
    <item>
      <title>arcpy.JSONToFeatures_conversion</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149694#M63913</link>
      <description>&lt;P&gt;Can anyone spot the issue with this input .json file?&lt;/P&gt;&lt;P&gt;arcpy.JSONToFeatures_conversion fails in both a .py script and in ArcGIS Desktop 10.8.1 JSONToFeatures toolbox.&lt;/P&gt;&lt;P&gt;py script error: "EOFError: [Errno 10054] An existing connection was forcibly closed by the remote host"&lt;/P&gt;&lt;P&gt;Toolbox error: no message specified but the process fails with the Background Processing window appearing stating the operations did not complete successfully due to error and to tell ESRI's GP team about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
  "features": [
    [
      {
        "geometry": {
          "y": -81.3515715,
          "x": 27.941971
        },
        "attributes": {
          "location_timestamp": 1646081377,
          "vehicleName": "Truck1",
          "deviceId": "350200694388663"
        }
      }
    ],
    [
      {
        "geometry": {
          "y": -81.3515715,
          "x": 27.941971
        },
        "attributes": {
          "location_timestamp": 1646081388,
          "vehicleName": "Truck1",
          "deviceId": "350200694388663"
        }
      }
    ]
  ],
  "fieldAliases": {
    "location_timestamp": "location_timestamp",
    "vehicleName": "vehicleName",
    "deviceId": "deviceId",
    "OBJECTID": "OBJECTID"
  },
  "fields": [
    {
      "alias": "OBJECTID",
      "type": "esriFieldTypeOID",
      "name": "OBJECTID"
    },
    {
      "alias": "deviceId",
      "length": 50,
      "type": "esriFieldTypeString",
      "name": "deviceId"
    },
    {
      "alias": "vehicleName",
      "length": 50,
      "type": "esriFieldTypeString",
      "name": "vehicleName"
    },
    {
      "alias": "location_timestamp",
      "length": 8,
      "type": "esriFieldTypeDate",
      "name": "location_timestamp"
    }
  ],
  "displayFieldName": "vehicleName",
  "spatialReference": {
    "wkid": 102100,
    "latestWkid": 3857
  },
  "geometryType": "esriGeometryPoint"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 18:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149694#M63913</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2022-03-02T18:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.JSONToFeatures_conversion</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149808#M63919</link>
      <description>&lt;P&gt;not sure about the extra set of square brackets on "features":&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
	"features": [{
			"geometry": {
				"y": -81.3515715,
				"x": 27.941971
			},
			"attributes": {
				"location_timestamp": 1646081377,
				"vehicleName": "Truck1",
				"deviceId": "350200694388663"
			}
		},
		{
			"geometry": {
				"y": -81.3515715,
				"x": 27.941971
			},
			"attributes": {
				"location_timestamp": 1646081388,
				"vehicleName": "Truck1",
				"deviceId": "350200694388663"
			}
		}
	],
	"fieldAliases": {
		"location_timestamp": "location_timestamp",
		"vehicleName": "vehicleName",
		"deviceId": "deviceId",
		"OBJECTID": "OBJECTID"
	},
	"fields": [{
			"alias": "OBJECTID",
			"type": "esriFieldTypeOID",
			"name": "OBJECTID"
		},
		{
			"alias": "deviceId",
			"length": 50,
			"type": "esriFieldTypeString",
			"name": "deviceId"
		},
		{
			"alias": "vehicleName",
			"length": 50,
			"type": "esriFieldTypeString",
			"name": "vehicleName"
		},
		{
			"alias": "location_timestamp",
			"length": 8,
			"type": "esriFieldTypeDate",
			"name": "location_timestamp"
		}
	],
	"displayFieldName": "vehicleName",
	"spatialReference": {
		"wkid": 102100,
		"latestWkid": 3857
	},
	"geometryType": "esriGeometryPoint"
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 02 Mar 2022 19:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149808#M63919</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2022-03-02T19:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.JSONToFeatures_conversion</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149830#M63920</link>
      <description>&lt;P&gt;Good eye.&amp;nbsp; Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attempting to transform a XML response from a non-spatial api that I've got to basically rebuild into well-formatted json and it looks like I've got an improper list-build process going on somewhere that generates the json.&amp;nbsp; Your correction looks like it should work.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 19:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149830#M63920</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2022-03-02T19:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.JSONToFeatures_conversion</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149842#M63921</link>
      <description>&lt;P&gt;JSON drives me nuts.&amp;nbsp; Maybe ambitious to mark it as correct if not tested!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:00:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149842#M63921</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2022-03-02T20:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.JSONToFeatures_conversion</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149848#M63922</link>
      <description>&lt;P&gt;Well... if you're up to taking a stab at my list-build problem I can keep this thread going!&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149848#M63922</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2022-03-02T20:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.JSONToFeatures_conversion</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149850#M63923</link>
      <description>&lt;P&gt;Ah if it works as a step in a bigger problem I'll keep the solve.&amp;nbsp; Probably better to do a new thread for a new problem.&amp;nbsp; Would get more interaction also.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:10:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149850#M63923</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2022-03-02T20:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.JSONToFeatures_conversion</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149851#M63924</link>
      <description>&lt;P&gt;heh.... No problem.&amp;nbsp; Actually I think I've worked it out.&amp;nbsp; But yep my squigglies perception is about maxed out for the day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the answer it helped.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-jsontofeatures-conversion/m-p/1149851#M63924</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2022-03-02T20:15:22Z</dc:date>
    </item>
  </channel>
</rss>

