How to test if JSON Collection object is empty in Java February 9, 2023 by Tarik obj.length() == 0 is what I would do.