<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Reading Json Data from a Document</title><link>https://community.appian.com/discussions/f/integrations/11096/reading-json-data-from-a-document</link><description>Hi All, 
 I will be getting the data from an external system in Json format in a Json File, 
 I know to use a!fromJson and convert that into a CDT type. 
 But my problem is I am not able to read the data from that File as a text to pass to a!fromJson</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/109397?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 03:17:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1df8b69d-3532-4fbf-8b46-2101c7d99549</guid><dc:creator>Mr_AR</dc:creator><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your response,&lt;/p&gt;
&lt;p&gt;My web api is getting document from third party, when I try to&amp;nbsp;convert using&amp;nbsp;&lt;strong&gt;readTextFromFile() ,&amp;nbsp;&lt;/strong&gt;it is unable to read due to receiving file in binary format.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any advice to overcome above situation,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/109299?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 07:09:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb736b11-0dbc-42c1-ae48-ccb1d2e9d70b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Use the &amp;quot;Text File Utilities&amp;quot; plugin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/109294?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 05:51:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:022abab8-d157-4069-b10b-6f17dd966278</guid><dc:creator>Mr_AR</dc:creator><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Our Web API having input as document , where document having json body.&lt;/p&gt;
&lt;p&gt;We are looking for any way to read json data from document having json body?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Aj&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/99232?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 15:18:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2304ac1f-9820-41d9-8dc5-a4d4bf664ce1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Thats a five year old thread. What are you looking for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/99228?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 14:52:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f5a06be-d952-47fd-ba92-c9ec1b79505f</guid><dc:creator>tamaraw</dc:creator><description>&lt;p&gt;The link does not work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/48614?ContentTypeID=1</link><pubDate>Tue, 19 Sep 2017 09:08:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9bbc8617-417a-40f1-94d6-ad770d8a266e</guid><dc:creator>vijayd</dc:creator><description>Sorry harshav, my understanding to your query is wrong.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/48590?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 14:07:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0795ac83-fdd0-49c3-a16e-ea03173da95d</guid><dc:creator>harrisont606</dc:creator><description>You can make an updated version of this plugin to support your use case I think &lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUh-ulLnMx5KBXxC11-HdJ5ZFifguobPecpw/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/48582?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 10:56:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0523d1d6-7e2d-4e87-bc06-d9e3778efb98</guid><dc:creator>harshav</dc:creator><description>I never said it is not working for me Vijay, my question is how will you read this data if this is coming you from a file, I mean how will you read the data from the file to get this format is the first show stopper for me. After that I will use a!fromJson and get the output&lt;br /&gt;
if you have done copying this entire code in a Json file and did it please let me know the steps how to do it,&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/48581?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 10:47:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74b59d1f-be3f-47d3-b4b1-55088854b745</guid><dc:creator>vijayd</dc:creator><description>braces* (typo error)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/48580?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 10:37:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:35369486-4368-4dca-84cb-4b5b7ee6264e</guid><dc:creator>vijayd</dc:creator><description>It is working for me to map to a CDT, please remove the square bases and try ([])&lt;br /&gt;
{&lt;br /&gt;
&amp;quot;A&amp;quot;: 0,&lt;br /&gt;
&amp;quot;B&amp;quot;: &amp;quot;AAA&amp;quot;,&lt;br /&gt;
&amp;quot;C&amp;quot;: 0,&lt;br /&gt;
&amp;quot;D&amp;quot;: &amp;quot;AAA&amp;quot;,&lt;br /&gt;
&amp;quot;E&amp;quot;: &amp;quot;Pending&amp;quot;,&lt;br /&gt;
&amp;quot;F&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;G&amp;quot;: &amp;quot;AAA&amp;quot;,&lt;br /&gt;
&amp;quot;H&amp;quot;: 1461220449000,&lt;br /&gt;
&amp;quot;I&amp;quot;: &amp;quot; &amp;quot;,&lt;br /&gt;
&amp;quot;J&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;K&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;L&amp;quot;: &amp;quot;AA 99000/0078 - 0001&amp;quot;,&lt;br /&gt;
&amp;quot;M&amp;quot;: 30379,&lt;br /&gt;
&amp;quot;N&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;O&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;P&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;Q&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;R&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;S&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;T&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
&amp;quot;U&amp;quot;: &amp;quot;2926&amp;quot;,&lt;br /&gt;
&amp;quot;V&amp;quot;: null,&lt;br /&gt;
&amp;quot;W&amp;quot;: null,&lt;br /&gt;
&amp;quot;X&amp;quot;: false,&lt;br /&gt;
&amp;quot;Y&amp;quot;: false,&lt;br /&gt;
&amp;quot;Z&amp;quot;: false&lt;br /&gt;
&lt;br /&gt;
}&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/48579?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 09:58:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97d893ae-6993-4d8f-8002-d8acc2d9f877</guid><dc:creator>harshav</dc:creator><description>[&lt;br /&gt;
    {&lt;br /&gt;
        &amp;quot;A&amp;quot;: 0,&lt;br /&gt;
        &amp;quot;B&amp;quot;: &amp;quot;AAA&amp;quot;,&lt;br /&gt;
        &amp;quot;C&amp;quot;: 0,&lt;br /&gt;
        &amp;quot;D&amp;quot;: &amp;quot;AAA&amp;quot;,&lt;br /&gt;
        &amp;quot;E&amp;quot;: &amp;quot;Pending&amp;quot;,&lt;br /&gt;
        &amp;quot;F&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;G&amp;quot;: &amp;quot;AAA&amp;quot;,&lt;br /&gt;
        &amp;quot;H&amp;quot;: 1461220449000,&lt;br /&gt;
        &amp;quot;I&amp;quot;: &amp;quot;&amp;amp;nbsp;&amp;quot;,&lt;br /&gt;
        &amp;quot;J&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;K&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;L&amp;quot;: &amp;quot;AA 99000/0078 - 0001&amp;quot;,&lt;br /&gt;
        &amp;quot;M&amp;quot;: 30379,&lt;br /&gt;
        &amp;quot;N&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;O&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;P&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;Q&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;R&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;S&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;T&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
        &amp;quot;U&amp;quot;: &amp;quot;2926&amp;quot;,&lt;br /&gt;
        &amp;quot;V&amp;quot;: null,&lt;br /&gt;
        &amp;quot;W&amp;quot;: null,&lt;br /&gt;
        &amp;quot;X&amp;quot;: false,&lt;br /&gt;
        &amp;quot;Y&amp;quot;: false,&lt;br /&gt;
        &amp;quot;Z&amp;quot;: false&lt;br /&gt;
&lt;br /&gt;
     }&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
Just copy this into a document and save it as a json file for reference...&lt;br /&gt;
I need to read that file and show case this results in a CDT format and use that data in screens.&lt;br /&gt;
&lt;br /&gt;
Thanks :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/48578?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 09:49:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f99ca280-beaa-437d-a7a2-8a3ba519874b</guid><dc:creator>vijayd</dc:creator><description>Could you please post a sample request ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/48577?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 09:11:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3399fd63-16e0-47cb-82ab-bbdecd408dbf</guid><dc:creator>harshav</dc:creator><description>Thanks for the reply alok, and I know this approach before but I was expecting any way with the inbuilt techniques.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading Json Data from a Document</title><link>https://community.appian.com/thread/48574?ContentTypeID=1</link><pubDate>Mon, 18 Sep 2017 07:50:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4d6321b-b0b9-4272-9b5c-dabc6fd0938d</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/harshav"&gt;harshav&lt;/a&gt; there can be a possibility to deal with this requirement, but need to do some R&amp;amp;D on this.&lt;br /&gt;
&lt;br /&gt;
You can try converting the response file it Base64 and again Base64 to Text, so the content which will be returned to you, will be your Json Data.&lt;br /&gt;
&lt;br /&gt;
But as i said, this required R&amp;amp;D and custom Plugin to be developed which can deal with files rather than normal texts for conversion into Base64 Format.&lt;br /&gt;
&lt;br /&gt;
Hope this will give you an idea to proceed further.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>