Home > Net >  Super hard to turn json datatable, to challenge ~!!!!!!
Super hard to turn json datatable, to challenge ~!!!!!!

Time:05-27

 {
"CODE" : 200,
"MESSAGE", "query" success,
"DATA" : [
{
"ORG_CODE" : "112666",
"BAH" : "0000001406",
"ZYCS" : 4,
"HOS_NAME" : "traditional Chinese",
"GENERATE_DATE" : "the 2019-11-25 11:09:05,"
"YBLSH" : "0000001406",
"STATUS" : 1,
"ERRORINFOS" : []
},
{
"ORG_CODE" : "112666",
"BAH" : "14002",
"ZYCS" : 4,
"HOS_NAME" : "traditional Chinese",
"GENERATE_DATE" : "the 2019-11-12 13:49:32,"
"YBLSH" : "14002",
"STATUS" : 2,
"ERRORINFOS" : [
{
"RULE" : "125",
"MSG" : "age and less than a year old age validation,"
"ERR_TYPE" :
2},
{
"RULE" : "101",
"MSG" : "diagnosis range check,"
1
"ERR_TYPE" :}
]
},
{
"ORG_CODE" : "112666",
"BAH" : "0000001",
"ZYCS" : 4,
"HOS_NAME" : "traditional Chinese",
"GENERATE_DATE" : "the 2019-11-25 11:10:57,"
"YBLSH" : "0000001404",
"STATUS" : 0,
"ERRORINFOS" : []
}
]
}

A json string, to the datatable (ERRORINFOS has several array element, is equivalent to the datatable several lines, ERRORINFOS no content, is the equivalent to a single line)

CodePudding user response:

Jq datatable????

CodePudding user response:

Why want to turn the datatable? The List is not sweet, a deserialized done!!!!!

CodePudding user response:

So what do you want the result set is? You write? Otherwise I demand is hard to understand..

Like you this., I have four rows of data as right?

1 to 4 no children of three fields..

Is

1
2 x
3 x
4
This kind of?

CodePudding user response:

You this kind of data structure can not directly into the DataTable, so give it up
  •  Tags:  
  • C#
  • Related