clean

private fun clean(jsonObject: JSONObject, doKeyValidation: Boolean = true): JSONObject

Does a validation of the keys. Bad keys are removed. Converts Date objects to BrazeDateFormat.LONG.

NOTE: This only validates the top-level keys (current behavior). Dates are converted at all levels.