i am trying to parse a json array,i am facing problem.
My array is like this:
configure: {
\"id\": 4,
\"userId\": 107,
\"deviceMacAddress\": \"
You can use the jsoncpp to do this job. Array as a Json::Value, you can
medicationValue = jsonObject[medicationKey];
Json::Value::Members member;
member = medicationValue .getMemberNames();
for (Json::Value::Members::iterator iter = member.begin(); iter != member.end(); iter++) {
the element of medication here
}
I hope will help you.