<?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>WebAPI JSON Message Body Validation with TRY Method</title><link>https://community.appian.com/discussions/f/best-practices/27965/webapi-json-message-body-validation-with-try-method</link><description>Hi Appian Community, 
 I want to implement a simple Try... Catch within my Web API sail expression to test the request body being a valid JSON message. I still notice that the Try() function is not publicized in the documentation but it has been an easier</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: WebAPI JSON Message Body Validation with TRY Method</title><link>https://community.appian.com/thread/108814?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 14:06:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:97f76e53-3e24-43ce-9909-bb4af43cee44</guid><dc:creator>felixl0004</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Using JSON Validator plugin is great. It gives the the yes/no return for my Web API validations.&lt;/p&gt;
&lt;p&gt;Link:&amp;nbsp;&lt;a href="https://community.appian.com/b/appmarket/posts/json-validator#"&gt;community.appian.com/.../json-validator&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WebAPI JSON Message Body Validation with TRY Method</title><link>https://community.appian.com/thread/108798?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 07:25:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92a0bb40-8366-45b2-8694-c378554e36d1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;REST does not say anything about JSON or XML. And APIs in Appian could work with almost any text based protocol.&lt;/p&gt;
&lt;p&gt;To check for valid JSON, I recommend the JSON Validator plugin.&lt;/p&gt;
&lt;p&gt;And, no, do not use ANY internal function. There are quite some that would be interesting, but any new Appian version has the risk to break your app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: WebAPI JSON Message Body Validation with TRY Method</title><link>https://community.appian.com/thread/108773?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 05:03:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:74cca3ba-aa66-470a-886f-80d2e7d13e5e</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Appian Web APIs are REST based and the request/response is exchanged using JSON not XML. What&amp;#39;s the confusion ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>