Tagged: String

Difference between getString() and optString() in Json 1

Difference between getString() and optString() in Json

While fetching the data from JSON , we might have null data for a particular Key value, at that time instead of implementing Null conditions, better make use of this optimized method optString(“<keyname>”) optString(“<KeyName>”) returns the empty string (“”) if...