C_OBJECT($o)

ON ERR CALL("ERR")
$o:=JSON Parse("rubbish";Is object)
ON ERR CALL("")

If (Not(OB Is defined($o)))

  //you parsed rubbish

End if


> 2016/09/02 2:39、Lee Hinde <[email protected]> のメール:
>
> I think the answer is an On Err Call, but...
> If I do something like:  JSON Parse($response;Is object)
> Is there some way to trap if the response isn't a valid json object?



宮古 啓介
セールス・エンジニア

株式会社フォーディー・ジャパン
〒150-0043
東京都渋谷区道玄坂1-10-2 渋谷THビル6F
Tel: 03-6427-8441
Fax: 03-6427-8449

[email protected]
www.4D.com/JP

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to