JSFiddle - React, Tailwind, and code Playground
by Frank Liu
JavaScript
let device = '{"devName" : {"0" : "[f:]" }, "retValue" : 0 }';
console.log('打印原字符串:', device);
console.log('JSON解析后:',JSON.parse(device));
console.log('获取devName:',JSON.parse(device)['devName']['0'] );