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