很抱歉WSO2,JSON和REST新手。我们有WSO2 APIM前端的DSS后端服务,当我尝试使用返回1个以上结果的服务并以JSON格式指定时,我得到了这种结果
employee_leave :{
"employee_leave_id":["45","46","47","48","49","50"],
"leave_id":["2","2","2","2","2","2"],
"employee_id":["105","105","105","105","105","105"],
"remarks":["test","test","test","test","test","test"],
"approve_reject_flag":["0","0","0","0","0","0"],
"approver_id":["","","",""],
"approved_date":["","","","","",""],
"created_id":["1","1","1","1","1","1"],
这是对的吗?由于开发人员抱怨多行结果应该与键分开显示,例如
employee_leave :{
"employee_leave_id":[
a: "45",
b: "46",
c: "47",
d: "48",
e: "49",
f: "50"],
如果a,b,c是我们的开发人员要求的名称/密钥,那么上述格式是否可行?我需要对此做些什么吗?