JSONObjectHelper
This allows other classes (primarily test classes) to register &receive events generated by the sdk.
Functions
Link copied to clipboard
Link copied to clipboard
Return null if arr doesn't have value at index or the value is null JSONArray.opt(index) return the JSONObject.
Return null if object doesn't have key or if obj has null for key JSONObject.opt(key) return the JSONObject.
Link copied to clipboard
Return null if obj doesn't have key or if obj has null for key JSONObject.
Return the fallback if obj doesn't have key or if obj has null for key JSONObject.
Link copied to clipboard
Return null if obj doesn't have key or if obj has null for key - and return value as a String[] otherwise