Converting DB XML dump to JSON