Ask questions and see you at March 6, 8 pm CET: youtube.com/@bienadam
Also checkout recent episode:
Please keep the questions as short and as concise as only possible. Feel free to ask several, shorter questions. I will also cover some questions in my "shorts" https://youtube.com/playlist?list=PLxU9yM-_yPs8xqd8Yu4ecpVwiUD_1Xv4N between the shows.
Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
New: the airhacks.tv discord server: discord.gg/airhacks
in java 11 was added
HttpClient, which you use in this example (https://www.adam-bien.com/roller/abien/entry/sending_a_json_document_via). I am using this client very often, but still have a question, what is a proper way to consume json from the response? In
HttpResponse.BodyHandlerswe can chose from ofString(), ofFile(), ofInputStream() and few more, but we do not have any way to have just json. Even in jdk 17, we do not have this possibility. I found this Question and Answers (https://stackoverflow.com/q/57629401/865448) but it looks like kind of workaround.
So my question is: what is a nice a recommend by you way to do this (get response as json)?