Below method uses generics and can convert JSONString to Any type of object depending on the type provided
Ex: object.toJson() ?: "" / object.toJson().orEmpty()