Data type ArrayList Map String,Object
Result value
[0] "date" = 2019-08-0100:00:00", "work" : "work", "department" : "username" : "potato" > [1] "date" = 2019-08-0100:00:00", "work" : "work" , "department" : "username" : "sweet potato [2] "date" = 2019-08-0100:00:00", "work" : "work", "department" : "department", "username" : "moo"> [3] "date" = 2019-08-0200:00", "work" : "work", "department" : "department", "username" : "potato" >
I'd like to process it so that it comes out in the following format, so what should I do? ㅠ<
{ username: "Potato", department: "Department", schedule : [{date : 2019-08-0100:00:00, work : work }, {date : 2019-08-0200:00, work : work }] }
java array map response
The object stored in the collection can be reassembled in the form desired by the questioner and extracted as object to json.
I recommend Jackson for the library.
https://www.mkyong.com/java/jackson-2-convert-java-object-to-from-json/
581 PHP ssh2_scp_send fails to send files as intended
612 GDB gets version error when attempting to debug with the Presense SDK (IDE)
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.