<?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_decode() return NULL in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/json-decode-return-NULL/m-p/53718#M28808</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19612"&gt;@Sergey﻿&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;I've reported your issue to the product team for analysis.&lt;BR /&gt;&lt;BR /&gt;I'd recommend subscribing to this topic so that you'll be alerted via email if there are updates. To subscribe, click &lt;STRONG&gt;Topic Options&lt;/STRONG&gt; at the top of this thread and then select &lt;STRONG&gt;Subscribe&lt;/STRONG&gt;. You'll then receive an email once anyone replies to your post.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
    <pubDate>Sat, 06 Feb 2016 19:18:10 GMT</pubDate>
    <dc:creator>RichardH</dc:creator>
    <dc:date>2016-02-06T19:18:10Z</dc:date>
    <item>
      <title>json_decode() return NULL</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/json-decode-return-NULL/m-p/53696#M28790</link>
      <description>&lt;P&gt;Hi. I have this code&lt;/P&gt;&lt;PRE&gt;$ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_HTTPHEADER, Array("'Content-Type: application/json; charset=utf-8'"));
      curl_setopt($ch, CURLOPT_HEADER, 0);
      curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data_str));
      curl_setopt($ch, CURLOPT_POST, 1);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
      $xmlresult = curl_exec($ch);
      $xmlError = $xmlresult;
      $json = json_decode($xmlresult, true);&lt;/PRE&gt;&lt;P&gt;The answer I get into json but I could not convert because the in the beginning answer is, extra characters See example&lt;/P&gt;&lt;PRE&gt;п»ї{"customerPaymentProfileIdList":[],"customerShippingAddressIdList":[],"validationDirectResponseList":[],"messages":{"resultCode":"Error","message":[{"code":"E00039","text":"A duplicate record with ID 39223758 already exists."}]}}&lt;/PRE&gt;&lt;P&gt;If I understand correctly, this could be due to encodings problems on your servers. How to solve this problem? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 19:19:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/json-decode-return-NULL/m-p/53696#M28790</guid>
      <dc:creator>Sergey</dc:creator>
      <dc:date>2016-02-03T19:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: json_decode() return NULL</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/json-decode-return-NULL/m-p/53718#M28808</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19612"&gt;@Sergey﻿&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;I've reported your issue to the product team for analysis.&lt;BR /&gt;&lt;BR /&gt;I'd recommend subscribing to this topic so that you'll be alerted via email if there are updates. To subscribe, click &lt;STRONG&gt;Topic Options&lt;/STRONG&gt; at the top of this thread and then select &lt;STRONG&gt;Subscribe&lt;/STRONG&gt;. You'll then receive an email once anyone replies to your post.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Richard&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 19:18:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/json-decode-return-NULL/m-p/53718#M28808</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2016-02-06T19:18:10Z</dc:date>
    </item>
  </channel>
</rss>

