View Single Post
rio_
Junior Member
Join Date: Feb 2017
Old 09-02-2017 , 02:11   Re: REST in Pawn - Communicate with JSON REST APIs
Reply With Quote #25

Is there no way to see if a key exists in a JSONObject? Even GetString produces an exception if the key doesn't exist, and only returns false if the key is set but is null. I feel like that's a huge piece that's missing... It shouldn't be up to the API you're communicating with to insert a null value for every possible key it could return.

Last edited by rio_; 09-02-2017 at 20:37.
rio_ is offline