<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pedro Lopes</title>
    <description>The latest articles on DEV Community by Pedro Lopes (@vjoxyodo).</description>
    <link>https://dev.to/vjoxyodo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F81123%2F36a83694-853d-404e-abf9-de8d6525eac0.jpg</url>
      <title>DEV Community: Pedro Lopes</title>
      <link>https://dev.to/vjoxyodo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vjoxyodo"/>
    <language>en</language>
    <item>
      <title>Json client read</title>
      <dc:creator>Pedro Lopes</dc:creator>
      <pubDate>Fri, 06 Jul 2018 10:52:18 +0000</pubDate>
      <link>https://dev.to/vjoxyodo/json-client-read-2go8</link>
      <guid>https://dev.to/vjoxyodo/json-client-read-2go8</guid>
      <description>&lt;p&gt;Never thought that this would happen in my developer lifetime with multiple clients at the same time.&lt;/p&gt;

&lt;p&gt;Few months ago I developed a API for data integration with our systems and the API returns always a json data structure schema with 2 keys (output and message). Message key can have multiple string outputs, but output is always 0 (unsuccess) or 1 (success). &lt;/p&gt;

&lt;p&gt;Two weeks ago I added a new key called guid that contains a uuid (Universally unique identifier), eg.:. 482b8a20-8108-11e8-adc0-fa7ae01bbebc, this implement wouldn't jam with output and/or with message. Suddenly clients said that they are having more output=1 than it is real (btw I track all outputs). So the stupid clients aren't parsing but instead doing a string search in the json schema, so for instance if something like this appears:&lt;/p&gt;

&lt;p&gt;{“output”: 0,”message”:”something happened”,”txGuid”:”482b8a20-8108-11e8-adc0-fa7ae01bbebc”}&lt;/p&gt;

&lt;p&gt;They will recognize as 1, since the schema has at least one 1 in the json schema.&lt;/p&gt;

&lt;p&gt;I tought I have seen everything, but this is definitely a multiple first timer.&lt;/p&gt;

&lt;p&gt;P.S API Documentation is explicit about json output!&lt;/p&gt;

</description>
      <category>json</category>
      <category>datastructure</category>
      <category>clientburn</category>
      <category>clientdevskills</category>
    </item>
  </channel>
</rss>
