<?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>Get HTTP Response values (JSON)</title><link>https://community.appian.com/discussions/f/general/17277/get-http-response-values-json</link><description>Hi all, 
 
 I am using an Integration object to invoke a REST based Service. I have marked &amp;quot;Convert the JSON Response body to an Appian value&amp;quot; and I can see the Response. I have steored it a TEXT variable: 
 [credentials:[site:[id:769f67f3-0bdc-4da4-95db</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get HTTP Response values (JSON)</title><link>https://community.appian.com/thread/68120?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 14:16:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d8a36a7c-94e2-4a7a-9721-82adcc3d9be2</guid><dc:creator>jesusa583</dc:creator><description>&lt;p&gt;I could save the value into a variable by simply using pv!Result.body.credentials.token&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get HTTP Response values (JSON)</title><link>https://community.appian.com/thread/68119?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 12:46:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5317c447-6fb3-4953-b59f-8fcb601f9136</guid><dc:creator>jesusa583</dc:creator><description>&lt;p&gt;Thanks, I am calling it from a process model. When I use a!fromJson() the whole Response is saved in a text variable but I want to parse it and get only parts of it (the token)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get HTTP Response values (JSON)</title><link>https://community.appian.com/thread/68117?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 12:16:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff5ab2f1-c15c-44d3-a7c1-037a9498a3bd</guid><dc:creator>Krishna Chaitanya Mallavarapu</dc:creator><description>&lt;p&gt;you are calling&amp;nbsp;&lt;span&gt;Integration&amp;nbsp;from&amp;nbsp;Integration&amp;nbsp;object&amp;nbsp;or process model ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;if by&amp;nbsp;Integration&amp;nbsp;object then try like below code&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;load(&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;local!data:rule!Integration ().result.body,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;a!fromJson(local!data)&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;then you will get list of&amp;nbsp;&lt;span&gt;dictionary&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;if by process model then you can directly save body and then&amp;nbsp; use&amp;nbsp;&lt;span&gt;a!fromJson()&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>