Delete all records in an array
I am working with JSON data that contains arrays of class data. At some point, I need to remove all of the items from the arrays to start processing over on new data. I want to be able to remove all of the items in the array with one call instead of having to make a call for each item since each array can contain up to 100,000 items each.
How can I make my JSON data look like the following data use the minimal amount of calls? { "mse_points": [], "rop_points": [] }
A sample of the fill out JSON data that looks like: { "me_points": [ { "x": 26, "y": 12, "value": 264.592850503733, "dataCount": 132, "id": 2612 }, { "x": 26, "y": 13, "value": 264.592850503733, "dataCount": 132, "id": 2613 }, { "x": 26, "y": 11, "value": 264.592850503733, "dataCount": 132, "id": 2611 } ], "rp_points": [ { "x": 26, "y": 12, "value": 264.592850503733, "dataCount": 132, "id": 2612 }, { "x": 26, "y": 13, "value": 264.592850503733, "dataCount": 132, "id": 2613 }, { "x": 26, "y": 11, "value": 264.592850503733, "dataCount": 132, "id": 2611 } ] }
Have you found an answer for this? I am wondering the same thing as well.