public void TestSerializerCanDeserializeList()
        {
            // Arrange
            string data = "[{\"routeid\":\"1\",\"routename\":\"1\u8def\",\"flag\":\"0\"},{\"routeid\":\"2\",\"routename\":\"2\u8def\",\"flag\":\"0\"},{\"routeid\":\"3\",\"routename\":\"3\u8def\",\"flag\":\"0\"},{\"routeid\":\"4\",\"routename\":\"4\u8def\",\"flag\":\"0\"},{\"routeid\":\"5\",\"routename\":\"5\u8def\",\"flag\":\"0\"},{\"routeid\":\"6\",\"routename\":\"6\u8def\",\"flag\":\"0\"},{\"routeid\":\"7\",\"routename\":\"7\u8def\",\"flag\":\"0\"},{\"routeid\":\"8\",\"routename\":\"8\u8def\",\"flag\":\"0\"},{\"routeid\":\"9\",\"routename\":\"9\u8def\",\"flag\":\"0\"},{\"routeid\":\"10\",\"routename\":\"10\u8def\",\"flag\":\"0\"},{\"routeid\":\"11\",\"routename\":\"11\u8def\",\"flag\":\"0\"},{\"routeid\":\"12\",\"routename\":\"12\u8def\",\"flag\":\"0\"},{\"routeid\":\"13\",\"routename\":\"13\u8def\",\"flag\":\"0\"},{\"routeid\":\"15\",\"routename\":\"15\u8def\",\"flag\":\"0\"},{\"routeid\":\"16\",\"routename\":\"16\u8def\",\"flag\":\"0\"},{\"routeid\":\"17\",\"routename\":\"17\u8def\",\"flag\":\"0\"},{\"routeid\":\"18\",\"routename\":\"18\u8def\",\"flag\":\"0\"},{\"routeid\":\"19\",\"routename\":\"19\u8def\",\"flag\":\"0\"},{\"routeid\":\"20\",\"routename\":\"20\u8def\",\"flag\":\"0\"},{\"routeid\":\"21\",\"routename\":\"21\u8def\",\"flag\":\"0\"},{\"routeid\":\"23\",\"routename\":\"23\u8def\",\"flag\":\"0\"},{\"routeid\":\"24\",\"routename\":\"24\u8def\",\"flag\":\"0\"},{\"routeid\":\"25\",\"routename\":\"25\u8def\",\"flag\":\"0\"},{\"routeid\":\"26\",\"routename\":\"26\u8def\",\"flag\":\"0\"},{\"routeid\":\"27\",\"routename\":\"27\u8def\",\"flag\":\"0\"},{\"routeid\":\"28\",\"routename\":\"28\u8def\",\"flag\":\"0\"},{\"routeid\":\"29\",\"routename\":\"29\u8def\",\"flag\":\"0\"},{\"routeid\":\"30\",\"routename\":\"30\u8def\",\"flag\":\"0\"},{\"routeid\":\"31\",\"routename\":\"31\u8def\",\"flag\":\"0\"},{\"routeid\":\"32\",\"routename\":\"32\u8def\",\"flag\":\"0\"},{\"routeid\":\"33\",\"routename\":\"33\u8def\",\"flag\":\"0\"},{\"routeid\":\"35\",\"routename\":\"35\u8def\",\"flag\":\"0\"},{\"routeid\":\"36\",\"routename\":\"36\u8def\",\"flag\":\"0\"},{\"routeid\":\"37\",\"routename\":\"37\u8def\",\"flag\":\"0\"},{\"routeid\":\"38\",\"routename\":\"38\u8def\",\"flag\":\"0\"},{\"routeid\":\"39\",\"routename\":\"39\u8def\",\"flag\":\"0\"},{\"routeid\":\"40\",\"routename\":\"40\u8def\",\"flag\":\"0\"},{\"routeid\":\"41\",\"routename\":\"41\u8def\",\"flag\":\"0\"},{\"routeid\":\"42\",\"routename\":\"42\u8def\",\"flag\":\"0\"},{\"routeid\":\"43\",\"routename\":\"43\u8def\",\"flag\":\"0\"},{\"routeid\":\"45\",\"routename\":\"45\u8def\",\"flag\":\"0\"},{\"routeid\":\"51\",\"routename\":\"51\u8def\",\"flag\":\"0\"},{\"routeid\":\"52\",\"routename\":\"52\u8def\",\"flag\":\"0\"},{\"routeid\":\"53\",\"routename\":\"53\u8def\",\"flag\":\"0\"},{\"routeid\":\"55\",\"routename\":\"55\u8def\",\"flag\":\"0\"},{\"routeid\":\"56\",\"routename\":\"56\u8def\",\"flag\":\"0\"},{\"routeid\":\"57\",\"routename\":\"57\u8def\",\"flag\":\"0\"},{\"routeid\":\"59\",\"routename\":\"59\u8def\",\"flag\":\"0\"},{\"routeid\":\"60\",\"routename\":\"60\u8def\",\"flag\":\"0\"},{\"routeid\":\"61\",\"routename\":\"61\u8def\",\"flag\":\"0\"},{\"routeid\":\"62\",\"routename\":\"62\u8def\",\"flag\":\"0\"},{\"routeid\":\"63\",\"routename\":\"63\u8def\",\"flag\":\"0\"},{\"routeid\":\"65\",\"routename\":\"65\u8def\",\"flag\":\"0\"},{\"routeid\":\"66\",\"routename\":\"66\u8def\",\"flag\":\"0\"},{\"routeid\":\"67\",\"routename\":\"67\u8def\",\"flag\":\"0\"},{\"routeid\":\"68\",\"routename\":\"68\u8def\",\"flag\":\"0\"},{\"routeid\":\"69\",\"routename\":\"69\u8def\",\"flag\":\"0\"},{\"routeid\":\"70\",\"routename\":\"70\u8def\",\"flag\":\"0\"},{\"routeid\":\"71\",\"routename\":\"71\u8def\",\"flag\":\"0\"},{\"routeid\":\"72\",\"routename\":\"72\u8def\",\"flag\":\"0\"},{\"routeid\":\"73\",\"routename\":\"73\u8def\",\"flag\":\"0\"},{\"routeid\":\"75\",\"routename\":\"75\u8def\",\"flag\":\"0\"},{\"routeid\":\"77\",\"routename\":\"77\u8def\",\"flag\":\"0\"},{\"routeid\":\"80\",\"routename\":\"80\u8def\",\"flag\":\"0\"},{\"routeid\":\"81\",\"routename\":\"81\u8def\",\"flag\":\"0\"},{\"routeid\":\"82\",\"routename\":\"82\u8def\",\"flag\":\"0\"},{\"routeid\":\"83\",\"routename\":\"83\u8def\",\"flag\":\"0\"},{\"routeid\":\"85\",\"routename\":\"85\u8def\",\"flag\":\"0\"},{\"routeid\":\"86\",\"routename\":\"86\u8def\",\"flag\":\"0\"},{\"routeid\":\"87\",\"routename\":\"87\u8def\",\"flag\":\"0\"},{\"routeid\":\"88\",\"routename\":\"88\u8def\",\"flag\":\"0\"},{\"routeid\":\"89\",\"routename\":\"89\u8def\",\"flag\":\"0\"},{\"routeid\":\"90\",\"routename\":\"90\u8def\",\"flag\":\"0\"},{\"routeid\":\"92\",\"routename\":\"92\u8def\",\"flag\":\"0\"},{\"routeid\":\"93\",\"routename\":\"93\u8def\",\"flag\":\"0\"},{\"routeid\":\"95\",\"routename\":\"95\u8def\",\"flag\":\"0\"},{\"routeid\":\"96\",\"routename\":\"96\u8def\",\"flag\":\"0\"},{\"routeid\":\"98\",\"routename\":\"98\u8def\",\"flag\":\"0\"},{\"routeid\":\"99\",\"routename\":\"99\u8def\",\"flag\":\"0\"},{\"routeid\":\"100\",\"routename\":\"100\u8def\",\"flag\":\"0\"},{\"routeid\":\"101\",\"routename\":\"G1\u8def\",\"flag\":\"0\"},{\"routeid\":\"102\",\"routename\":\"102\u8def\",\"flag\":\"0\"},{\"routeid\":\"103\",\"routename\":\"103\u8def\",\"flag\":\"0\"},{\"routeid\":\"105\",\"routename\":\"105\u8def\",\"flag\":\"0\"},{\"routeid\":\"106\",\"routename\":\"106\u8def\",\"flag\":\"0\"},{\"routeid\":\"107\",\"routename\":\"107\u8def\",\"flag\":\"0\"},{\"routeid\":\"111\",\"routename\":\"111\u8def\",\"flag\":\"0\"},{\"routeid\":\"112\",\"routename\":\"112\u8def\",\"flag\":\"0\"},{\"routeid\":\"113\",\"routename\":\"113\u8def\",\"flag\":\"0\"},{\"routeid\":\"115\",\"routename\":\"115\u8def\",\"flag\":\"0\"},{\"routeid\":\"116\",\"routename\":\"116\u8def\",\"flag\":\"0\"},{\"routeid\":\"118\",\"routename\":\"118\u8def\",\"flag\":\"0\"},{\"routeid\":\"126\",\"routename\":\"126\u8def\",\"flag\":\"0\"},{\"routeid\":\"128\",\"routename\":\"128\u8def\",\"flag\":\"0\"},{\"routeid\":\"129\",\"routename\":\"129\u8def\",\"flag\":\"0\"},{\"routeid\":\"130\",\"routename\":\"130\u8def\",\"flag\":\"0\"},{\"routeid\":\"131\",\"routename\":\"131\u8def\",\"flag\":\"0\"},{\"routeid\":\"133\",\"routename\":\"133\u8def\",\"flag\":\"0\"},{\"routeid\":\"135\",\"routename\":\"135\u8def\",\"flag\":\"0\"},{\"routeid\":\"138\",\"routename\":\"138\u8def\",\"flag\":\"0\"},{\"routeid\":\"139\",\"routename\":\"139\u8def\",\"flag\":\"0\"},{\"routeid\":\"150\",\"routename\":\"150\u8def\",\"flag\":\"0\"},{\"routeid\":\"157\",\"routename\":\"157\u8def\",\"flag\":\"0\"},{\"routeid\":\"158\",\"routename\":\"158\u8def\",\"flag\":\"0\"},{\"routeid\":\"201\",\"routename\":\"201\u8def\",\"flag\":\"0\"},{\"routeid\":\"202\",\"routename\":\"202\u8def\",\"flag\":\"0\"},{\"routeid\":\"203\",\"routename\":\"203\u8def\",\"flag\":\"0\"},{\"routeid\":\"206\",\"routename\":\"206\u8def\",\"flag\":\"0\"},{\"routeid\":\"207\",\"routename\":\"207\u8def\",\"flag\":\"0\"},{\"routeid\":\"208\",\"routename\":\"208\u8def\",\"flag\":\"0\"},{\"routeid\":\"211\",\"routename\":\"211\u8def\",\"flag\":\"0\"},{\"routeid\":\"213\",\"routename\":\"213\u8def\",\"flag\":\"0\"},{\"routeid\":\"216\",\"routename\":\"216\u8def\",\"flag\":\"0\"},{\"routeid\":\"310\",\"routename\":\"310\u8def\",\"flag\":\"0\"},{\"routeid\":\"311\",\"routename\":\"311\u8def\",\"flag\":\"0\"},{\"routeid\":\"312\",\"routename\":\"312\u8def\",\"flag\":\"0\"},{\"routeid\":\"313\",\"routename\":\"79\u8def\",\"flag\":\"0\"},{\"routeid\":\"315\",\"routename\":\"315\u8def\",\"flag\":\"0\"},{\"routeid\":\"316\",\"routename\":\"316\u8def\",\"flag\":\"0\"},{\"routeid\":\"319\",\"routename\":\"319\u8def\",\"flag\":\"0\"},{\"routeid\":\"328\",\"routename\":\"328\u8def\",\"flag\":\"0\"},{\"routeid\":\"358\",\"routename\":\"358\u8def\",\"flag\":\"0\"},{\"routeid\":\"359\",\"routename\":\"359\u8def\",\"flag\":\"0\"},{\"routeid\":\"395\",\"routename\":\"395\u8def\",\"flag\":\"0\"},{\"routeid\":\"501\",\"routename\":\"501\u8def\",\"flag\":\"0\"},{\"routeid\":\"502\",\"routename\":\"502\u8def\",\"flag\":\"0\"},{\"routeid\":\"503\",\"routename\":\"503\u8def\",\"flag\":\"0\"},{\"routeid\":\"505\",\"routename\":\"505\u8def\",\"flag\":\"0\"},{\"routeid\":\"506\",\"routename\":\"506\u8def\",\"flag\":\"0\"},{\"routeid\":\"507\",\"routename\":\"507\u8def\",\"flag\":\"0\"},{\"routeid\":\"508\",\"routename\":\"508\u8def\",\"flag\":\"0\"},{\"routeid\":\"509\",\"routename\":\"509\u8def\",\"flag\":\"0\"},{\"routeid\":\"601\",\"routename\":\"601\u8def\u533a\u95f4\",\"flag\":\"0\"},{\"routeid\":\"602\",\"routename\":\"602\u8def\",\"flag\":\"0\"},{\"routeid\":\"603\",\"routename\":\"603\u8def\",\"flag\":\"0\"},{\"routeid\":\"605\",\"routename\":\"605\u8def\",\"flag\":\"0\"},{\"routeid\":\"606\",\"routename\":\"606\u8def\",\"flag\":\"0\"},{\"routeid\":\"607\",\"routename\":\"607\u8def\",\"flag\":\"0\"},{\"routeid\":\"608\",\"routename\":\"608\u8def\",\"flag\":\"0\"},{\"routeid\":\"609\",\"routename\":\"609\u8def\",\"flag\":\"0\"},{\"routeid\":\"610\",\"routename\":\"610\u8def\",\"flag\":\"0\"},{\"routeid\":\"611\",\"routename\":\"611\u8def\",\"flag\":\"0\"},{\"routeid\":\"612\",\"routename\":\"612\u8def\",\"flag\":\"0\"},{\"routeid\":\"615\",\"routename\":\"615\u8def\",\"flag\":\"0\"},{\"routeid\":\"617\",\"routename\":\"617\u8def\",\"flag\":\"0\"},{\"routeid\":\"618\",\"routename\":\"618\u8def\",\"flag\":\"0\"},{\"routeid\":\"619\",\"routename\":\"619\u8def\",\"flag\":\"0\"},{\"routeid\":\"621\",\"routename\":\"621\u8def\",\"flag\":\"0\"},{\"routeid\":\"622\",\"routename\":\"622\u8def\",\"flag\":\"0\"},{\"routeid\":\"623\",\"routename\":\"623\u8def\",\"flag\":\"0\"},{\"routeid\":\"625\",\"routename\":\"625\u8def\",\"flag\":\"0\"},{\"routeid\":\"626\",\"routename\":\"626\u8def\",\"flag\":\"0\"},{\"routeid\":\"627\",\"routename\":\"627\u8def\",\"flag\":\"0\"},{\"routeid\":\"628\",\"routename\":\"628\u8def\",\"flag\":\"0\"},{\"routeid\":\"629\",\"routename\":\"629\u8def\",\"flag\":\"0\"},{\"routeid\":\"630\",\"routename\":\"630\u8def\",\"flag\":\"0\"},{\"routeid\":\"631\",\"routename\":\"631\u8def\",\"flag\":\"0\"},{\"routeid\":\"633\",\"routename\":\"633\u8def\",\"flag\":\"0\"},{\"routeid\":\"635\",\"routename\":\"635\u8def\",\"flag\":\"0\"},{\"routeid\":\"668\",\"routename\":\"668\u8def\",\"flag\":\"0\"},{\"routeid\":\"671\",\"routename\":\"671\u8def\",\"flag\":\"0\"},{\"routeid\":\"672\",\"routename\":\"672\u8def\",\"flag\":\"0\"},{\"routeid\":\"673\",\"routename\":\"673\u8def\",\"flag\":\"0\"},{\"routeid\":\"701\",\"routename\":\"701\u8def\",\"flag\":\"0\"},{\"routeid\":\"702\",\"routename\":\"702\u8def\",\"flag\":\"0\"},{\"routeid\":\"704\",\"routename\":\"\u5b9c\u5bb6\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"705\",\"routename\":\"705\u8def\",\"flag\":\"0\"},{\"routeid\":\"706\",\"routename\":\"706\u8def\",\"flag\":\"0\"},{\"routeid\":\"707\",\"routename\":\"707\u8def\",\"flag\":\"0\"},{\"routeid\":\"711\",\"routename\":\"711\u8def\",\"flag\":\"0\"},{\"routeid\":\"712\",\"routename\":\"712\u8def\",\"flag\":\"0\"},{\"routeid\":\"713\",\"routename\":\"713\u8def\",\"flag\":\"0\"},{\"routeid\":\"715\",\"routename\":\"715\u8def\",\"flag\":\"0\"},{\"routeid\":\"716\",\"routename\":\"716\u8def\",\"flag\":\"0\"},{\"routeid\":\"719\",\"routename\":\"719\u8def\",\"flag\":\"0\"},{\"routeid\":\"720\",\"routename\":\"720\u8def\",\"flag\":\"0\"},{\"routeid\":\"721\",\"routename\":\"721\u8def\",\"flag\":\"0\"},{\"routeid\":\"722\",\"routename\":\"722\u8def\",\"flag\":\"0\"},{\"routeid\":\"723\",\"routename\":\"723\u8def\",\"flag\":\"0\"},{\"routeid\":\"725\",\"routename\":\"725\u8def\",\"flag\":\"0\"},{\"routeid\":\"726\",\"routename\":\"726\u8def\",\"flag\":\"0\"},{\"routeid\":\"727\",\"routename\":\"727\u8def\",\"flag\":\"0\"},{\"routeid\":\"728\",\"routename\":\"728\u8def\",\"flag\":\"0\"},{\"routeid\":\"729\",\"routename\":\"729\u8def\",\"flag\":\"0\"},{\"routeid\":\"730\",\"routename\":\"730\u8def\",\"flag\":\"0\"},{\"routeid\":\"731\",\"routename\":\"731\u8def\u65e7\",\"flag\":\"0\"},{\"routeid\":\"732\",\"routename\":\"732\u8def\",\"flag\":\"0\"},{\"routeid\":\"733\",\"routename\":\"733\u8def\",\"flag\":\"0\"},{\"routeid\":\"735\",\"routename\":\"735\u8def\",\"flag\":\"0\"},{\"routeid\":\"737\",\"routename\":\"737\u8def\",\"flag\":\"0\"},{\"routeid\":\"738\",\"routename\":\"738\u8def\",\"flag\":\"0\"},{\"routeid\":\"739\",\"routename\":\"739\u8def\",\"flag\":\"0\"},{\"routeid\":\"801\",\"routename\":\"801\u8def\",\"flag\":\"0\"},{\"routeid\":\"802\",\"routename\":\"802\u8def\",\"flag\":\"0\"},{\"routeid\":\"803\",\"routename\":\"803\u8def\",\"flag\":\"0\"},{\"routeid\":\"805\",\"routename\":\"805\u8def\",\"flag\":\"0\"},{\"routeid\":\"1901\",\"routename\":\"19\u8def\u5feb\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"2001\",\"routename\":\"\u73af\u8821\u6e56\u89c2\u5149\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"2901\",\"routename\":\"\u5feb6\",\"flag\":\"0\"},{\"routeid\":\"3001\",\"routename\":\"\u673a\u573a1\u53f7\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"3301\",\"routename\":\"\u5feb5\",\"flag\":\"0\"},{\"routeid\":\"3501\",\"routename\":\"35\u5927\",\"flag\":\"0\"},{\"routeid\":\"5001\",\"routename\":\"\u65b0\u4e16\u754c\u56fd\u9645\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"5201\",\"routename\":\"\u9f99\u6f6d\u6d5c\",\"flag\":\"0\"},{\"routeid\":\"6601\",\"routename\":\"76\u8def\",\"flag\":\"0\"},{\"routeid\":\"7001\",\"routename\":\"\u671b\u4ead\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"7002\",\"routename\":\"\u5927\u65b9\u6865\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"8002\",\"routename\":\"\u5858\u524d\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"9001\",\"routename\":\"\u60e0\u5c71\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"9013\",\"routename\":\"\u9752\u9f99\u5c71\u4fbf\u6c11\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"10501\",\"routename\":\"105\u652f\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"10502\",\"routename\":\"\u5feb1\",\"flag\":\"0\"},{\"routeid\":\"11501\",\"routename\":\"\u5feb2\",\"flag\":\"0\"},{\"routeid\":\"13001\",\"routename\":\"\u5feb7\",\"flag\":\"0\"},{\"routeid\":\"13101\",\"routename\":\"\u5feb3\",\"flag\":\"0\"},{\"routeid\":\"60103\",\"routename\":\"601\u8def\",\"flag\":\"0\"},{\"routeid\":\"60203\",\"routename\":\"602\u652f\",\"flag\":\"0\"},{\"routeid\":\"71101\",\"routename\":\"711\u533a\",\"flag\":\"0\"},{\"routeid\":\"71102\",\"routename\":\"711\u652f\",\"flag\":\"0\"},{\"routeid\":\"71501\",\"routename\":\"715\u4e25\u5bb6\u6865\",\"flag\":\"0\"},{\"routeid\":\"72102\",\"routename\":\"721\u652f\",\"flag\":\"0\"},{\"routeid\":\"72203\",\"routename\":\"722\u591c\",\"flag\":\"0\"},{\"routeid\":\"7711\",\"routename\":\"771\u8def\",\"flag\":\"1\"},{\"routeid\":\"7771\",\"routename\":\"777\u8def\",\"flag\":\"1\"},{\"routeid\":\"7881\",\"routename\":\"788\u8def\",\"flag\":\"1\"},{\"routeid\":\"7621\",\"routename\":\"762\u8def\",\"flag\":\"1\"},{\"routeid\":\"7513\",\"routename\":\"751\u5ef6\",\"flag\":\"1\"},{\"routeid\":\"7511\",\"routename\":\"751\u8def\",\"flag\":\"1\"},{\"routeid\":\"7631\",\"routename\":\"763\u8def\",\"flag\":\"1\"},{\"routeid\":\"7561\",\"routename\":\"756\u8def\",\"flag\":\"1\"},{\"routeid\":\"7651\",\"routename\":\"765\u8def\",\"flag\":\"1\"},{\"routeid\":\"7512\",\"routename\":\"751\u8def\u652f\",\"flag\":\"1\"},{\"routeid\":\"7691\",\"routename\":\"769\u8def\",\"flag\":\"1\"},{\"routeid\":\"7531\",\"routename\":\"753\u8def\",\"flag\":\"1\"},{\"routeid\":\"7591\",\"routename\":\"759\u8def\",\"flag\":\"1\"},{\"routeid\":\"7671\",\"routename\":\"767\u8def\",\"flag\":\"1\"},{\"routeid\":\"7521\",\"routename\":\"752\u8def\",\"flag\":\"1\"},{\"routeid\":\"7611\",\"routename\":\"761\u8def\",\"flag\":\"1\"},{\"routeid\":\"7601\",\"routename\":\"760\u8def\",\"flag\":\"1\"},{\"routeid\":\"7551\",\"routename\":\"755\u8def\",\"flag\":\"1\"},{\"routeid\":\"7751\",\"routename\":\"775\u8def\",\"flag\":\"1\"},{\"routeid\":\"7721\",\"routename\":\"772\u8def\",\"flag\":\"1\"},{\"routeid\":\"7581\",\"routename\":\"758\u8def\",\"flag\":\"1\"},{\"routeid\":\"7661\",\"routename\":\"766\u8def\",\"flag\":\"1\"},{\"routeid\":\"7681\",\"routename\":\"768\u8def\",\"flag\":\"1\"},{\"routeid\":\"13102\",\"routename\":\"\u5feb8\",\"flag\":\"0\"},{\"routeid\":\"8808\",\"routename\":\"88\u8def\u591c\u73ed\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"1201\",\"routename\":\"12\u652f\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"717\",\"routename\":\"717\u8def\",\"flag\":\"0\"},{\"routeid\":\"714\",\"routename\":\"\u6c5f\u5357\u4e2d\u4e13\",\"flag\":\"0\"},{\"routeid\":\"724\",\"routename\":\"\u9521\u4e1c\u9ad8\u7ea7\u4e2d\u5b66\",\"flag\":\"0\"},{\"routeid\":\"708\",\"routename\":\"708\u8def\",\"flag\":\"0\"},{\"routeid\":\"156\",\"routename\":\"156\u8def\",\"flag\":\"0\"},{\"routeid\":\"616\",\"routename\":\"616\u8def\",\"flag\":\"0\"},{\"routeid\":\"9008\",\"routename\":\"25\u652f\",\"flag\":\"0\"},{\"routeid\":\"7702\",\"routename\":\"770\u8def\",\"flag\":\"1\"},{\"routeid\":\"7571\",\"routename\":\"757\u8def\",\"flag\":\"1\"},{\"routeid\":\"744\",\"routename\":\"\u9521\u4e1c\u9ad8\u7ea7\u4e2d\u5b66\u6559\u5e08\",\"flag\":\"0\"},{\"routeid\":\"806\",\"routename\":\"806\u8def\",\"flag\":\"0\"},{\"routeid\":\"9103\",\"routename\":\"3\u8def\u533a\u95f4\",\"flag\":\"0\"},{\"routeid\":\"151\",\"routename\":\"151\u8def\",\"flag\":\"0\"},{\"routeid\":\"614\",\"routename\":\"\u6768\u5bb6\u5729\u6865\u4e34\u65f6\u63a5\u9a73\",\"flag\":\"0\"},{\"routeid\":\"637\",\"routename\":\"637\u8def\",\"flag\":\"0\"},{\"routeid\":\"636\",\"routename\":\"636\u8def\",\"flag\":\"0\"},{\"routeid\":\"159\",\"routename\":\"159\u8def\",\"flag\":\"0\"},{\"routeid\":\"153\",\"routename\":\"153\u8def\",\"flag\":\"0\"},{\"routeid\":\"155\",\"routename\":\"155\u8def\",\"flag\":\"0\"},{\"routeid\":\"2601\",\"routename\":\"\u80e1\u57ed\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"1012\",\"routename\":\"G2\",\"flag\":\"0\"},{\"routeid\":\"2603\",\"routename\":\"\u6cb3\u57d2\u53e3\u80e1\u57ed\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"2604\",\"routename\":\"\u5c71\u6c34\u57ce\u80e1\u57ed\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"13104\",\"routename\":\"\u804c\u6559\u56ed\u6885\u56ed\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"73102\",\"routename\":\"731\u8def\",\"flag\":\"0\"},{\"routeid\":\"13103\",\"routename\":\"\u804c\u6559\u56ed\u5c71\u5317\u4e13\u7ebf\",\"flag\":\"0\"},{\"routeid\":\"180\",\"routename\":\"180\u8def\",\"flag\":\"0\"},{\"routeid\":\"807\",\"routename\":\"807\u8def\",\"flag\":\"0\"},{\"routeid\":\"6005\",\"routename\":\"\u5e78\u798f\u6d1b\u793e\",\"flag\":\"0\"}]";
            ISerializer serializer = new JsonConvertSerializer();

            // Act
            List<Route> result = serializer.Deserialize<List<Route>>(data);

            // Assert
            Assert.AreEqual(277,result.Count);
            Assert.IsNotNull(result.First().RouteId);
        }
Example #2
0
        static void Main(string[] args)
        {
            ISerializer serializer = new JsonConvertSerializer();

            // 1.line.json
            //using (StreamReader sr = File.OpenText("../../SampleResults/1.line.json", FileMode.Open))
            //{
            //    List<LineEntity> lineEntities = serializer.Deserialize<List<LineEntity>>(sr.ReadToEnd());
            //}

            // 2.station.json
            using (StreamReader sr = File.OpenText("../../SampleResults/2.station.json"))
            {
                StationResultEntity stationEntities = serializer.Deserialize<StationResultEntity>(sr.ReadToEnd());
            }

            // 3.station2.json
            //using (StreamReader sr = File.OpenText("../../SampleResults/3.station2.json"))
            //{
            //    List<Station2ResultEntity> stationEntities = serializer.Deserialize<List<Station2ResultEntity>>(sr.ReadToEnd());
            //}

            // 4.news.json
            //using (StreamReader sr = File.OpenText("../../SampleResults/4.news.json"))
            //{
            //    List<NewsEntity> newsEntities = serializer.Deserialize<List<NewsEntity>>(sr.ReadToEnd());
            //}

            // 9.stationLine2.json
            //using (StreamReader sr = File.OpenText("../../SampleResults/9.stationLine2.json"))
            //{
            //    JObject jsonObj = serializer.Deserialize<JObject>(sr.ReadToEnd());
            //    IEnumerable<JProperty> properties = jsonObj.Properties();
            //    foreach (JProperty item in properties)
            //    {
            //        Console.WriteLine(item.Name);

            //        StationLine2Entity stationLine2Entity = serializer.Deserialize<StationLine2Entity>(item.Value.ToString());
            //    }
            //}

            Console.ReadKey();
        }