[FIXUP] don't iterate through json objects if nil