json数据读取不到,求大神指教

{"CX":"{\"Type\":\"DEVICE\",\"NodeAlias\":\"TL-KF-WAN-F2-SWL3-DIS-C4507-1.cpichq.com.cn\",\"SecondOrgName\":\"包含产险\",\"DevType\":\"Switch\",\"Severity\":4,\"ConPercentage\":\"\",\"ID\":\"10.192.255.8\",\"Alerts\":[{\"LineNameAlias\":\"N/A\",\"NodeAlias\":\"TL-KF-WAN-F2-SWL3-DIS-C4507-1.cpichq.com.cn\",\"Node\":\"10.192.255.8\",\"SecondOrgName\":\"包含产险\",\"OrgName\":\"���ֿ���WAN\",\"Manager\":\"ICMP@JTWGAPP54006\",\"AlarmLine\":\"\",\"LineName\":\"N/A\",\"AlertGroup\":\"ICMP\",\"IPPort\":\"\",\"COPort\":\"\",\"MibValue\":\"0.00\",\"DevType\":\"Switch\",\"Severity\":\"4\",\"ResourceType\":\"1\",\"ConPercentage\":\"\",\"FirstOccurrence\":\"1504976583\",\"ClearTime\":\"0\",\"ThirdOrgName\":\"澳门\",\"Serial\":\"10125868\",\"Type\":\"1\",\"OriSeverity\":\"4\",\"Summary\":\"�豸 10.192.255.8 Ping��ͨ\",\"Poll\":\"180\",\"LastOccurrence\":\"1505460819\"}],\"Performance\":{},\"ThirdOrgName\":\"澳门\"}","SX":"{\"Type\":\"DEVICE\",\"NodeAlias\":\"HQ-YHGC-20F-SW2-R5750H-1\",\"SecondOrgName\":\"包含寿险\",\"DevType\":\"Switch\",\"Severity\":0,\"ConPercentage\":\"\",\"ID\":\"10.205.63.130\",\"Alerts\":[],\"Performance\":{},\"ThirdOrgName\":\"澳门\"}"}
这段json数据,我想读取CX的Type的值,用CX.Type为什么读取不到,显示为undefined?

查看全部
u013077579
lianyang506277
2017/10/10 10:23
  • json
  • 点赞
  • 收藏
  • 回答
    私信

1个回复