我想将 json 解码为列表,但jsonDecode返回字符串而不是列表。
我的 JSON:
[{
"TicketID": 31,
"EmpID": "11553",
"Name": "Test",
"Location": null,
"PhoneExt": 345345,
"Code": null,
"Reason": null,
"Category": null,
"Created": null,
"Username": "abc",
"OtherLocation": null,
"Room": null,
"Floor": null,
"CodeBlueDone": null,
"CodeBlueDoneDate": null,
"LocationCode": null,
"PatientType": null,
"EmergencyType": "Emergency",
"FilledDateTime": null,
"SubmitDateTime": null,
"Type": null,
"CallTime": "2022-08-26T13:43:25.003",
"Status": "New"
}, {
"TicketID": 30,
"EmpID": "12",
"Name": "dbdb",
"Location": null,
"PhoneExt": 123,
"Code": null,
"Reason": null,
"Category": null,
"Created": null,
"Username": "abc",
"OtherLocation": null,
"Room": null, …Run Code Online (Sandbox Code Playgroud)