For now the code remains duplicated in JSON and XML parsers. Unit test cases updated to comply with number expectations.