<?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: Proper ESRI format for a JSON file in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76655#M6222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried this in both my Python script using:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;arcpy.env.workspace = directory + "/gdb"&lt;/P&gt;&lt;P&gt;path = "&amp;lt;filepath for json file&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fc = arcpy.JSONToFeatures_conversion(path, os.path.join("cslf.gdb", "cslf_{}".format(today)))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As well as using the manual JSONToFeatures tool in my toolbox in ArcMap (under Conversions) just using the same file. Both give me the exact same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 21:18:10 GMT</pubDate>
    <dc:creator>JustinBridwell2</dc:creator>
    <dc:date>2018-10-17T21:18:10Z</dc:date>
    <item>
      <title>Proper ESRI format for a JSON file</title>
      <link>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76653#M6220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I keep getting a 001558: Error parsing .json file. According to ESRI documentation for that error, "t&lt;SPAN style="color: #242729; background-color: #eff0f1;"&gt;he JSON must have at least the geometryType, spatialReference, fields, and features (with geometry and attributes) property."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I checked my .json file and it appeared to have all that but I want to see an example of a proper format. Can anyone give me a proper example of hwo ESRI want a file to look. Below is what my .json file looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"displayFieldName"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"CSLF_ID"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"fieldAliases"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;{...},&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"geometryType"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"esriGeometryPolygon"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"spatialReference"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"wkid"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;102100&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"latestWkid"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;3857&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;},&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"fields"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;[...],&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"features"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"attributes"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;{...},&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;"geometry"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;{...}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;},...]}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 19:57:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76653#M6220</guid>
      <dc:creator>JustinBridwell2</dc:creator>
      <dc:date>2018-10-17T19:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proper ESRI format for a JSON file</title>
      <link>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76654#M6221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What tool is generating the error and how are you calling it? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 20:24:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76654#M6221</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-10-17T20:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proper ESRI format for a JSON file</title>
      <link>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76655#M6222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried this in both my Python script using:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;arcpy.env.workspace = directory + "/gdb"&lt;/P&gt;&lt;P&gt;path = "&amp;lt;filepath for json file&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fc = arcpy.JSONToFeatures_conversion(path, os.path.join("cslf.gdb", "cslf_{}".format(today)))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As well as using the manual JSONToFeatures tool in my toolbox in ArcMap (under Conversions) just using the same file. Both give me the exact same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 21:18:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76655#M6222</guid>
      <dc:creator>JustinBridwell2</dc:creator>
      <dc:date>2018-10-17T21:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proper ESRI format for a JSON file</title>
      <link>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76656#M6223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/conversion-toolbox/an-overview-of-the-json-toolset.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/conversion-toolbox/an-overview-of-the-json-toolset.htm"&gt;An overview of the JSON toolset—Help | ArcGIS for Desktop&lt;/A&gt; is out of date.&amp;nbsp; I thought "fieldAliases" was deprecated back around 10.0.&amp;nbsp; Try removing that element and see if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/documentation/common-data-types/featureset-object.htm" title="https://developers.arcgis.com/documentation/common-data-types/featureset-object.htm"&gt;FeatureSet object—Common Data Types | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 22:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76656#M6223</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-10-17T22:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proper ESRI format for a JSON file</title>
      <link>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76657#M6224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only difference that I can see in my JSON data is that the geometry comes after the attributes in features. But this was working up until yesterday.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 22:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76657#M6224</guid>
      <dc:creator>JustinBridwell2</dc:creator>
      <dc:date>2018-10-17T22:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proper ESRI format for a JSON file</title>
      <link>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76658#M6225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it was working up until yesterday, then I am at a loss for why is stopped working.&amp;nbsp; Did you install any new Esri software, patches, or updates?&amp;nbsp; Have you tried rebooting the machine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 12:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/proper-esri-format-for-a-json-file/m-p/76658#M6225</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-10-18T12:45:39Z</dc:date>
    </item>
  </channel>
</rss>

