Home > Back-end >  Excuse me how jsonlib multistage parsing in c + +
Excuse me how jsonlib multistage parsing in c + +

Time:09-23

Shown in the following json packet, how to extract the value value?
{" status ": 0," body ": {" updatetime" : 1479195940,
"Measuregrps" : [
{" grpid: "651671865," attrib: 0, "date" : 1479189702, "category" : 1,
"Measures" : [
{" value ": 73," type ": 9," unit ": 0},
{" value ": 106," type ": 10," unit ": 0},
{" value ": 82," type ": 11," unit ": 0}
]},

{" grpid: "651667422," attrib: 0, "date" : 1479189555, "category" : 1,
"Measures" : [
{" value ": 72," type ": 9," unit ": 0},
{" value ": 117," type ": 10," unit ": 0},
{" value ": 80," type ": 11," unit ": 0}
]},
{" grpid: "651666452," attrib: 0, "date" : 1479189503, "category" : 1,
"Measures" : [
{" value ": 73," type ": 9," unit ": 0},
{" value ": 109," type ": 10," unit ": 0},
{" value ": 91," type ": 11," unit ": 0}
]},
Timezone], ":" Asia \/Shanghai}}"

CodePudding user response:

The Internet as a example
  • Related