isEmpty

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 {})

Return

True if the given string is "empty"

Parameters

string

The string to check


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

Return

True if the given array is "empty"

Parameters

jsonData

The data to check