<?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: Official JSON formats in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550442#M51291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, so far I didn't find any real Official JSON format (if that exist).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found the ESRI JSON input format expected by a geoprocessing service for ArcGIS 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;So I know exactly what the geoprocessing service expects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also seen how a featureSet should be sent to a geoprocessing service through the submitJob function of the esri.tasks.Geoprocessor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/geoprocessor.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/geoprocessor.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is to figure out, where does that geoprocessor find its toJson function for a featureSet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI says that the format expected should be some like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{ 
"geometryType" : "esriGeometryPoint",
"spatialReference" : {"wkid" : 4326},
"features"&amp;nbsp; : [
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometry" : {"x" : -104.44, "y" : 34.83},
&amp;nbsp;&amp;nbsp;&amp;nbsp; "attributes" : {"Id" : 43, "Name" : "Feature 1"}
},
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometry" : {"x" : -100.65, "y" : 33.69},
&amp;nbsp;&amp;nbsp;&amp;nbsp; "attributes" : {"Id" : 67, "Name" : "Feature 2"}
}
]
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But then, the geoprocessor object create the JSON from my featureSet like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
"fields":[],
"geometryType":"esriGeometryPoint",
"features":[
{
&amp;nbsp; "geometry":{"x":678731.422659788,"y":6221057.36591139,"spatialReference":{"wkid":3400}},
&amp;nbsp; "attributes":{"ID":0,"NAME":"Main Camp","TYPE":"Permanent","LATITUDE":"56.123456","LONGITUDE":"-112.12345678","LOCAT_VALID":"Valid","isAlone":true}
}
],
"sr":{"wkid":3400}
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Althought the JSON.stringify() method give me this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
"features":[
{
&amp;nbsp; "geometry":{"type":"point","x":678731.422659788,"y":6221057.36591139,"spatialReference":{"wkid":3400}},
&amp;nbsp; "symbol":null,
&amp;nbsp; "attributes":{"ID":0,"NAME":"Main Camp","TYPE":"Permanent","LATITUDE":"56.123456","LONGITUDE":"-112.12345678","LOCAT_VALID":"Valid","isAlone":true},
&amp;nbsp; "infoTemplate":{"title":"Main Camp","content":"Latitude: 56.123456&amp;lt;br&amp;gt;Longitude: -112.12345678"}
}
],
"geometryType":"esriGeometryPoint",
"spatialReference":{"wkid":3400}
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to call the service from the rest end point with both JSON featureSet and I found out why the JSON object created by the geoprocessor does not work. It simply that, as you can notice, the spatial reference from the geoprocessor is noted as &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"sr":{"wkid":3400}&lt;/PRE&gt;&lt;SPAN&gt; while form the stringify method it is noted as &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"spatialReference":{"wkid":3400}&lt;/PRE&gt;&lt;SPAN&gt; which is the expected format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if this is normal and there is just something I'm missing, or is it simply a bug from esri.tasks.geoprocessor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is why I'd like to know what does the esri.tasks.geoprocessor uses for the purpose of converting FeatureSet to JSON and how can I work around that problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone has encountered that problem or has a hint on how to solve this, it'd be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:48:44 GMT</pubDate>
    <dc:creator>DenisLapierre</dc:creator>
    <dc:date>2021-12-11T23:48:44Z</dc:date>
    <item>
      <title>Official JSON formats</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550440#M51289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know where can I find the real official JSON formats with &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;versions&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a real standard somewhere?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does ESRI uses that standard? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where can I find the official ESRI JSON formats?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What standard does JSON.stringify() uses?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found it very difficult to find reliable information on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that I'm trying to call a geoprocessing service on ArcGIS 10.0, but the translation from my javascript FeatureSet to JSON is not proper to what the greopressing service expect. In the request, the input has a different format and has empty values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Service I'm trying to call : &lt;/SPAN&gt;&lt;A href="http://oxpgisws01d.env.gov.ab.ca/ArcGIS/rest/services/IWCP/IWCP/GPServer/PointsLocationValidation"&gt;http://oxpgisws01d.env.gov.ab.ca/ArcGIS/rest/services/IWCP/IWCP/GPServer/PointsLocationValidation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 21:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550440#M51289</guid>
      <dc:creator>DenisLapierre</dc:creator>
      <dc:date>2012-04-30T21:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Official JSON formats</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550441#M51290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@petaques, Hi, I'm not a JSON expert so I can't answer most of your questions. However, you can find detailed information on our JSON response syntax. For that information, please consult the ArcGIS Server REST API specifcation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html"&gt;http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, here's a few other links that I've found to be helpful:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://json.org/"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.json.org/js.html"&gt;http://www.json.org/js.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 15:00:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550441#M51290</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-05-04T15:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Official JSON formats</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550443#M51292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i use &lt;/SPAN&gt;&lt;A href="http://json.org/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://json.org/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and the validator at&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jsonformatter.curiousconcept.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jsonformatter.curiousconcept.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far pretty straight forward, only surprise was that comments are not supported!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You cannot have //comments in json&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you need to actually add a comments key:value pair&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, so far I didn't find any real Official JSON format (if that exist).&lt;BR /&gt;&lt;BR /&gt;I've found the ESRI JSON input format expected by a geoprocessing service for ArcGIS 10.0.&lt;BR /&gt;&lt;A href="http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html&lt;/A&gt;&lt;BR /&gt;So I know exactly what the geoprocessing service expects.&lt;BR /&gt;&lt;BR /&gt;I've also seen how a featureSet should be sent to a geoprocessing service through the submitJob function of the esri.tasks.Geoprocessor.&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/geoprocessor.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/geoprocessor.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;My problem is to figure out, where does that geoprocessor find its toJson function for a featureSet.&lt;BR /&gt;&lt;BR /&gt;ESRI says that the format expected should be some like this :&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{ 
"geometryType" : "esriGeometryPoint",
"spatialReference" : {"wkid" : 4326},
"features"&amp;nbsp; : [
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometry" : {"x" : -104.44, "y" : 34.83},
&amp;nbsp;&amp;nbsp;&amp;nbsp; "attributes" : {"Id" : 43, "Name" : "Feature 1"}
},
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometry" : {"x" : -100.65, "y" : 33.69},
&amp;nbsp;&amp;nbsp;&amp;nbsp; "attributes" : {"Id" : 67, "Name" : "Feature 2"}
}
]
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;But then, the geoprocessor object create the JSON from my featureSet like this:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
"fields":[],
"geometryType":"esriGeometryPoint",
"features":[
{
&amp;nbsp; "geometry":{"x":678731.422659788,"y":6221057.36591139,"spatialReference":{"wkid":3400}},
&amp;nbsp; "attributes":{"ID":0,"NAME":"Main Camp","TYPE":"Permanent","LATITUDE":"56.123456","LONGITUDE":"-112.12345678","LOCAT_VALID":"Valid","isAlone":true}
}
],
"sr":{"wkid":3400}
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Althought the JSON.stringify() method give me this :&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
"features":[
{
&amp;nbsp; "geometry":{"type":"point","x":678731.422659788,"y":6221057.36591139,"spatialReference":{"wkid":3400}},
&amp;nbsp; "symbol":null,
&amp;nbsp; "attributes":{"ID":0,"NAME":"Main Camp","TYPE":"Permanent","LATITUDE":"56.123456","LONGITUDE":"-112.12345678","LOCAT_VALID":"Valid","isAlone":true},
&amp;nbsp; "infoTemplate":{"title":"Main Camp","content":"Latitude: 56.123456&amp;lt;br&amp;gt;Longitude: -112.12345678"}
}
],
"geometryType":"esriGeometryPoint",
"spatialReference":{"wkid":3400}
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;I've tried to call the service from the rest end point with both JSON featureSet and I found out why the JSON object created by the geoprocessor does not work. It simply that, as you can notice, the spatial reference from the geoprocessor is noted as &lt;PRE class="lia-code-sample line-numbers language-none"&gt;"sr":{"wkid":3400}&lt;/PRE&gt; while form the stringify method it is noted as &lt;PRE class="lia-code-sample line-numbers language-none"&gt;"spatialReference":{"wkid":3400}&lt;/PRE&gt; which is the expected format.&lt;BR /&gt;&lt;BR /&gt;I'm wondering if this is normal and there is just something I'm missing, or is it simply a bug from esri.tasks.geoprocessor.&lt;BR /&gt;That is why I'd like to know what does the esri.tasks.geoprocessor uses for the purpose of converting FeatureSet to JSON and how can I work around that problem. &lt;BR /&gt;&lt;BR /&gt;If anyone has encountered that problem or has a hint on how to solve this, it'd be appreciated.&lt;BR /&gt;Thank you&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550443#M51292</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2021-12-11T23:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Official JSON formats</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550444#M51293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff, here's Douglas Crockford's comment on why he removed comments from JSON: &lt;/SPAN&gt;&lt;A href="https://plus.google.com/118095276221607585885/posts/RK8qyGVaGSr"&gt;https://plus.google.com/118095276221607585885/posts/RK8qyGVaGSr&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 22:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550444#M51293</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-05-24T22:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Official JSON formats</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550445#M51294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Jeff, here's Douglas Crockford's comment on why he removed comments from JSON: &lt;A href="https://plus.google.com/118095276221607585885/posts/RK8qyGVaGSr"&gt;https://plus.google.com/118095276221607585885/posts/RK8qyGVaGSr&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Andy&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;THanks for the link.&amp;nbsp; IT really isnt a big deal, more of just a watershed moment when "why is my json always invalid" is oh - no comments allowed!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 12:48:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550445#M51294</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-05-25T12:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Official JSON formats</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550442#M51291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, so far I didn't find any real Official JSON format (if that exist).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found the ESRI JSON input format expected by a geoprocessing service for ArcGIS 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;So I know exactly what the geoprocessing service expects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also seen how a featureSet should be sent to a geoprocessing service through the submitJob function of the esri.tasks.Geoprocessor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/geoprocessor.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/geoprocessor.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is to figure out, where does that geoprocessor find its toJson function for a featureSet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI says that the format expected should be some like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{ 
"geometryType" : "esriGeometryPoint",
"spatialReference" : {"wkid" : 4326},
"features"&amp;nbsp; : [
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometry" : {"x" : -104.44, "y" : 34.83},
&amp;nbsp;&amp;nbsp;&amp;nbsp; "attributes" : {"Id" : 43, "Name" : "Feature 1"}
},
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; "geometry" : {"x" : -100.65, "y" : 33.69},
&amp;nbsp;&amp;nbsp;&amp;nbsp; "attributes" : {"Id" : 67, "Name" : "Feature 2"}
}
]
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But then, the geoprocessor object create the JSON from my featureSet like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
"fields":[],
"geometryType":"esriGeometryPoint",
"features":[
{
&amp;nbsp; "geometry":{"x":678731.422659788,"y":6221057.36591139,"spatialReference":{"wkid":3400}},
&amp;nbsp; "attributes":{"ID":0,"NAME":"Main Camp","TYPE":"Permanent","LATITUDE":"56.123456","LONGITUDE":"-112.12345678","LOCAT_VALID":"Valid","isAlone":true}
}
],
"sr":{"wkid":3400}
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Althought the JSON.stringify() method give me this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
"features":[
{
&amp;nbsp; "geometry":{"type":"point","x":678731.422659788,"y":6221057.36591139,"spatialReference":{"wkid":3400}},
&amp;nbsp; "symbol":null,
&amp;nbsp; "attributes":{"ID":0,"NAME":"Main Camp","TYPE":"Permanent","LATITUDE":"56.123456","LONGITUDE":"-112.12345678","LOCAT_VALID":"Valid","isAlone":true},
&amp;nbsp; "infoTemplate":{"title":"Main Camp","content":"Latitude: 56.123456&amp;lt;br&amp;gt;Longitude: -112.12345678"}
}
],
"geometryType":"esriGeometryPoint",
"spatialReference":{"wkid":3400}
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to call the service from the rest end point with both JSON featureSet and I found out why the JSON object created by the geoprocessor does not work. It simply that, as you can notice, the spatial reference from the geoprocessor is noted as &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"sr":{"wkid":3400}&lt;/PRE&gt;&lt;SPAN&gt; while form the stringify method it is noted as &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"spatialReference":{"wkid":3400}&lt;/PRE&gt;&lt;SPAN&gt; which is the expected format.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if this is normal and there is just something I'm missing, or is it simply a bug from esri.tasks.geoprocessor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is why I'd like to know what does the esri.tasks.geoprocessor uses for the purpose of converting FeatureSet to JSON and how can I work around that problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone has encountered that problem or has a hint on how to solve this, it'd be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/official-json-formats/m-p/550442#M51291</guid>
      <dc:creator>DenisLapierre</dc:creator>
      <dc:date>2021-12-11T23:48:44Z</dc:date>
    </item>
  </channel>
</rss>

