add empty object handling
add test for empty object handling
bump version to 1.2.2