JArray
Posted hofmann
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JArray相关的知识,希望对你有一定的参考价值。
[ "A001033": "", "A001011": "0", "A001034": "5", "A001012": "4", "A001013": "0", "A001035": "0", "A001014": "0", "A001036": "0", "A001015": "0", "A001037": "0", "A001016": "0", "A001038": "0", "A001017": "1", "A001039": "0", "A001018": "4", "A001019": "0", "A001040": "0", "A001041": "0", "A001020": "0", "A001042": "0", "A001043": "0", "A001021": "0", "A001022": "0", "A001044": "0", "A001045": "0", "A001023": "1", "A001024": "0", "A001025": "0", "A001026": "0", "A001027": "0", "A001028": "0", "A001007": "5", "A001029": "0", "A001008": "5", "A001009": "0", "A001030": "601|647|838", "A001031": "838", "A001010": "0", "A001032": "0" , "A002221": "", "A002188": "0", "A002222": "", "A002189": "0", "A002025": "3802.24", "C000001": "600", "C000002": "0", "C000003": "0", "C000009": "576", "A004333": "0", "A004653": "0", "A004334": "3802.24", "A004335": "0", "A004654": "0", "A004336": "0", "A004655": "0", "A004337": "0", "A004656": "0", "A004338": "0", "A004657": "0", "A002117": "370100", "A004339": "0", "A004658": "0", "A004659": "0", "A002119": "", "A004340": "0", "A004660": "0", "A004341": "0", "A004661": "0", "A004342": "0", "A002087": "0", "A004662": "0", "A004343": "0", "A002121": "", "A002001": "1", "A004663": "0", "A004344": "0", "A002002": "1", "A004664": "0", "A002046": "0", "A002003": "0", "A004665": "0", "A002004": "3802.24", "A004666": "0", "A004667": "0", "A002005": "3802.24", "A004668": "0", "A002204": "1", "A002006": "0", "A002007": "1", "A002205": "1", "A002008": "1", "A002206": "0", "A002009": "0", "A002092": "0", "A002093": "0", "A002094": "0", "A002095": "3802.24", "A002096": "0", "A002097": "0", "A002010": "3802.24", "A002175": "0", "A002011": "3802.24", "A002176": "0", "A002012": "0", "A002013": "1", "A002014": "0", "CDCT006": "0", "A002017": "0", "A002018": "0", "CDCT009": "0", "A002218": "", "A002219": "3", "A002182": "0", "A002183": "0", "A002020": "0", "A002220": "", "A002022": "3802.24" ]
解析上边在这个JSON
List<Dictionary<string, string>> combiLabelsObject = JsonConvert.DeserializeObject<List<Dictionary<string, string>>>(combiLabelsJson); // JArray combiLabelsJArray = JArray.Parse(combiLabelsJson); string personalCardholderInformation = combiLabelsJArray.First.ToString(); string ginkgoScoreMultipurposeConsumerCombiLabelsInformation = combiLabelsJArray.Last.ToString(); //JArray combiLabelsJArray2 = (JArray)JsonConvert.DeserializeObject(combiLabelsJson);
再次反序列化两个对象
以上是关于JArray的主要内容,如果未能解决你的问题,请参考以下文章