JSONUtil

open class JSONUtil

Functions

Link copied to clipboard
open fun isEmpty(@Nullable jsonData: Array<Byte>): Boolean
Checks if the given json data array is empty, that is:
  • The array is null
  • The arra length is below 1
open fun isEmpty(@Nullable string: String): Boolean
Checks if the given json string is empty, that is:
  • The string is null
  • The string length is below 3 (ie: an empty list [] or object {})