<?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>a!fromJson()</title><link>https://community.appian.com/discussions/f/new-to-appian/29577/a-fromjson</link><description>when I run the functon a!fromJson(). It gives the error 
 
 Error:== 
 The JsonText parameter does must not be null or empty 
 what should i do</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: a!fromJson()</title><link>https://community.appian.com/thread/117342?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 16:26:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:65c3587b-6fa4-4808-8a03-3ddcab8db7d0</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What are you trying to do here? What is this JSON data you are dealing with?&lt;/p&gt;
&lt;p&gt;So, the dot-notation will fail in case that field does not exists. This is what the error message means.&lt;/p&gt;
&lt;p&gt;You can use the index() or property() function to fetch values from fields. It allows you to provide a default value in case the field does not exist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!fromJson()</title><link>https://community.appian.com/thread/117340?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 15:58:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3988d5a-c53b-49d1-95b8-f97fde76c3f8</guid><dc:creator>shifa</dc:creator><description>&lt;p&gt;local!search:if(a!isNullOrEmpty(ri!input),&lt;/p&gt;
&lt;p&gt;{},&lt;/p&gt;
&lt;p&gt;a!fromJson(ri!input)&lt;/p&gt;
&lt;p&gt;),&lt;/p&gt;
&lt;p&gt;local!pagingInfo:a!pagingInfo(&lt;/p&gt;
&lt;p&gt;startIndex:local!search.startIndex,&lt;/p&gt;
&lt;p&gt;batchSize:local!search.batchSize&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;when i apply a!nullorEmpty(ri!nput).in a!fromJson(ri!input)..It gives error at startIndex&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;error:-&lt;/p&gt;
&lt;p&gt;invalid index:cannot index property startIndex of type String into type List of Variant&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a!fromJson()</title><link>https://community.appian.com/thread/117327?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 12:54:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee0c164b-4cce-43ba-b648-de32c481fd00</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You cannot pass a NULL value to that function. Where is this coming from? If it is OK that there is a NULL value, then wrap the call into an if() and check for NULL using a!isNullOrEmpty(). If it is NOT OK, I suggest to use the error() function to make others aware of that situation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>