Fix #8832 - Parse '{"person":[]}' JSON/XML as {'person' => []}.
Merge pull request #9111 from jsomara/3-0-json-fix

Fix #8832 - Parse '{"person":[]}' JSON/XML as {'person' => []}.