"role_ids": [
10,
2,
1
How to convert to this form
"roles": [ "roleId": 1, "roleName": "Administrator", "comments": null, "isDelete": null, "createTime": null, "createTime": null, "updateTime": null }, "roleId": 2, "roleName": "Normal user", "comments": null, "isDelete": null, "createTime": null, "updateTime": null ]
First thing you should note is that the following form is a json string, and the one used in php is json_encode