我是服务响应的新手。我无法将其分离"First Class"
并"Second Class"
放入一个单独的数组中。此外,我需要将第一类作为数组,将第二类作为数组。在头等舱中,我需要获取class_id
并class_name
作为字符串。它将一直持续到。fifteen classes
我如何确定响应是first class
还是其他second class
类?挣扎了很久。提前致谢。
Response :{
"First Class" = (
{
"class_id" = 2;
"class_name" = "Art";
},{
"class_id" = 2;
"class_name" = "Medical";
}
);
"Second Class" = (
{
"class_id" = 3;
"class_name" = "Swim";
}
)
}