<?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 POST a json object to REST API in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/post-a-json-object-to-rest-api/m-p/77267#M363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone been able to successfully do this?&amp;nbsp; I have a c# object representing a Query that I want to submit to the REST API.&amp;nbsp; I have serialized the object into a string and posted the string but get errors.&amp;nbsp; The only solution I've found is to basically convert the string to a querystring and post that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, the object:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{f:"json", geometry:{xmin:0,ymin:0,xmax:100,ymax:100},geometryType:"esriGeometryEnvelope"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;has to be posted as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;f=json&amp;amp;geometry={xmin=0,ymin=0,xmax=100,ymax=100}&amp;amp;geometryType=esriGeometryEnvelope&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of the actual JSON string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Aug 2013 19:57:16 GMT</pubDate>
    <dc:creator>GeorgeSimpson</dc:creator>
    <dc:date>2013-08-01T19:57:16Z</dc:date>
    <item>
      <title>POST a json object to REST API</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/post-a-json-object-to-rest-api/m-p/77267#M363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone been able to successfully do this?&amp;nbsp; I have a c# object representing a Query that I want to submit to the REST API.&amp;nbsp; I have serialized the object into a string and posted the string but get errors.&amp;nbsp; The only solution I've found is to basically convert the string to a querystring and post that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, the object:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{f:"json", geometry:{xmin:0,ymin:0,xmax:100,ymax:100},geometryType:"esriGeometryEnvelope"}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;has to be posted as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;f=json&amp;amp;geometry={xmin=0,ymin=0,xmax=100,ymax=100}&amp;amp;geometryType=esriGeometryEnvelope&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of the actual JSON string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 19:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/post-a-json-object-to-rest-api/m-p/77267#M363</guid>
      <dc:creator>GeorgeSimpson</dc:creator>
      <dc:date>2013-08-01T19:57:16Z</dc:date>
    </item>
  </channel>
</rss>

