cara memeriksa apakah objek json kosong

obj.length() == 0
is what I would do.
Santino