<?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: Reading Complex JSON String with SimpleTransformation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710905#M1947501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that it's the same issue as with XML. You have to specify those elements which are optional (tt:d-cond, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and make sure you have applied SAP corrections in case of bugs).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2016 15:40:21 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2016-06-24T15:40:21Z</dc:date>
    <item>
      <title>Reading Complex JSON String with SimpleTransformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710904#M1947500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Together,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to read a complex json Response with simple Transformation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found some example coding to create and read JSON with XMLReader and XMLWriter in combination with simpel Transformation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a small structure it works very fine. But if I working with a big json Response with nested child structures that are not obligatory. I have big Problems to create a working ST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 13:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710904#M1947500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-24T13:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Complex JSON String with SimpleTransformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710905#M1947501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that it's the same issue as with XML. You have to specify those elements which are optional (tt:d-cond, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and make sure you have applied SAP corrections in case of bugs).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 15:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710905#M1947501</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-06-24T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Complex JSON String with SimpleTransformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710906#M1947502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We started off by using CL_XI_ALERT_JSON_DOCUMENT.&lt;BR /&gt;We ended up copying that Class and changing it as it didn't escape characters that well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2016 09:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710906#M1947502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-25T09:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Complex JSON String with SimpleTransformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710907#M1947503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've allready made some test with conditions but I'm not able to create a running ST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is that I have optional Array data: artAttributes (see attached File (it is allready the XML representation of JSON))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following ST:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&amp;lt;tt:d-cond check="exist(artAttributesI"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;object&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;
&lt;P&gt;&amp;lt;/object&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/tt:d-cond&amp;gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But the condition in both cases true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I have an error with the condition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 06:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710907#M1947503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-27T06:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Complex JSON String with SimpleTransformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710908#M1947504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(that's not the issue but typo in &lt;SPAN style="text-decoration: underline;"&gt;check="exist(artAttributesI"&lt;/SPAN&gt; -&amp;gt; check="exist(artAttributes)")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit: I looked at your artData.xml&lt;/STRONG&gt;, and I think you're right, it's not possible to condition an element based on one of its attributes ("name" here). And you can't either condition its inner element "array" as it's also used for other values of this attribute. So I think you need to exclude the values via ABAP code only, after the transformation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 07:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710908#M1947504</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-06-27T07:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Complex JSON String with SimpleTransformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710909#M1947505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your Response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because artDescription is an attribute I have to use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&amp;lt;tt:d-cond&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;object Name="artDescription"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/object&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/tt:d-cond&amp;gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But now I've understand what is ment with patern in the SAP docu for Simple Transformation conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 08:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710909#M1947505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-27T08:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Complex JSON String with SimpleTransformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710910#M1947506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback. So, my answer was mostly incorrect (only my remark about "check" was correct, but my remark about "it's not possible to condition an element based on one of its attributes" was wrong, as I thought &amp;lt;object Name="artDescription"&amp;gt; couldn't work).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, mark your own answer as correct, to not mislead forum readers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 08:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-complex-json-string-with-simpletransformation/m-p/11710910#M1947506</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-06-27T08:53:44Z</dc:date>
    </item>
  </channel>
</rss>

