读取嵌套的json对象并存储在数组中?

时间:2018-09-04 08:36:20

标签: typescript angular6

[    {       中:弦,       employeeName:字符串,       hireDate:string,       dept:string,       票:[{       ticketId:数字,       loggingBy:string,       raiseDate:string,       严重程度:字符串,       ticketDesc:字符串,       通过字符串:       分辨率:字符串,       resolveDate:string,       状态:字符串},        {       ticketId:数字,       loggingBy:string,       raiseDate:string,       严重程度:字符串,       ticketDesc:字符串,       通过字符串:       分辨率:字符串,       resolveDate:string,       状态:字符串}       ]     },    {       中:弦,       employeeName:字符串,       hireDate:string,       dept:string,       票:[{       ticketId:数字,       loggingBy:string,       raiseDate:string,       严重程度:字符串,       ticketDesc:字符串,       通过字符串:       分辨率:字符串,       resolveDate:string,       状态:字符串},        {       ticketId:数字,       loggingBy:string,       raiseDate:string,       严重程度:字符串,       ticketDesc:字符串,       通过字符串:       分辨率:字符串,       resolveDate:string,       状态:字符串},       {       ticketId:数字,       loggingBy:string,       raiseDate:string,       严重程度:字符串,       ticketDesc:字符串,       通过字符串:       分辨率:字符串,       resolveDate:string,       状态:字符串},

  ]
}

]

这是我的json对象,我希望票证ID存储在单个数组中。

0 个答案:

没有答案