<?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: JSON String is order dependent in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/JSON-String-is-order-dependent/m-p/62886#M37118</link>
    <description>&lt;P&gt;Hi tylerzika,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reporting this issue.&lt;/P&gt;&lt;P&gt;Our&amp;nbsp;&amp;nbsp;current JSON request and response format&amp;nbsp;is not a RESTful implementation, instead it's a conversion from XML to JSON. In order to get a successful response, API requires elements to be passed in the defined order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, We DO have&amp;nbsp; REST APIs in development that should solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, for the time being you can refer to below link and see if the mentioned work arounds can be applied in the language you are using for developement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/JSON-API-warning-properties-are-order-dependent/m-p/55519/highlight/true#M30389" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/JSON-API-warning-properties-are-order-dependent/m-p/55519/highlight/true#M30389&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if you need more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 21:35:40 GMT</pubDate>
    <dc:creator>RichaSingh</dc:creator>
    <dc:date>2018-04-30T21:35:40Z</dc:date>
    <item>
      <title>JSON String is order dependent</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/JSON-String-is-order-dependent/m-p/62847#M37093</link>
      <description>&lt;P&gt;My code mixes up the orders of the key/value pairs. There is no way to ressolve this that I'm aware of with the language I'm required to use. This is what it generates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"authenticateTestRequest": {&lt;BR /&gt;"merchantAuthentication": {&lt;BR /&gt;"transactionKey": "TRANSCATION_KEY",&lt;BR /&gt;"name": "API_LOGIN_ID"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"messages": {&lt;BR /&gt;"resultCode": "Error",&lt;BR /&gt;"message": [&lt;BR /&gt;{&lt;BR /&gt;"code": "E00003",&lt;BR /&gt;"text": "The element 'merchantAuthentication' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'name' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'mobileDeviceId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This shouldn't fail cause it's still a valid JSON string. Is there any way to have the API ignore the order?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 15:26:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/JSON-String-is-order-dependent/m-p/62847#M37093</guid>
      <dc:creator>tylerzika</dc:creator>
      <dc:date>2018-04-26T15:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: JSON String is order dependent</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/JSON-String-is-order-dependent/m-p/62886#M37118</link>
      <description>&lt;P&gt;Hi tylerzika,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reporting this issue.&lt;/P&gt;&lt;P&gt;Our&amp;nbsp;&amp;nbsp;current JSON request and response format&amp;nbsp;is not a RESTful implementation, instead it's a conversion from XML to JSON. In order to get a successful response, API requires elements to be passed in the defined order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, We DO have&amp;nbsp; REST APIs in development that should solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, for the time being you can refer to below link and see if the mentioned work arounds can be applied in the language you are using for developement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/JSON-API-warning-properties-are-order-dependent/m-p/55519/highlight/true#M30389" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/JSON-API-warning-properties-are-order-dependent/m-p/55519/highlight/true#M30389&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if you need more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 21:35:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/JSON-String-is-order-dependent/m-p/62886#M37118</guid>
      <dc:creator>RichaSingh</dc:creator>
      <dc:date>2018-04-30T21:35:40Z</dc:date>
    </item>
  </channel>
</rss>

