How to avoid generating all combinations of selected data while constructing an object?
问题 My original JSON is given below. [ { "id": "1", "name": "AA_1", "total": "100002", "files": [ { "filename": "8665b987ab48511eda9e458046fbc42e.csv", "filename_original": "some.csv", "status": "3", "total": "100002", "time": "2020-08-24 23:25:49" } ], "status": "3", "created": "2020-08-24 23:25:49", "filenames": "8665b987ab48511eda9e458046fbc42e.csv", "is_append": "0", "is_deleted": "0", "comment": null }, { "id": "4", "name": "AA_2", "total": "43806503", "files": [ { "filename":