If a Stream does not have a terminal operation, the intermediate operations of this stream will not be executed
This is the code I wrote today, I found that there was no data in the list at the end, so I debugged it, and during debugging I found: the entire peek() operation was not executed, it was skipped directly
Later, I refactored the code, directly returning JSONObject in the map() operation, and the terminal operation toList() worked perfectly!!!