37. Create Complex JSON Payload Using Java For Rest Assured
ฝัง
- เผยแพร่เมื่อ 31 ธ.ค. 2024
- We have already learned to create simple JSON Objects and Arrays using Java Map and List. let's apply those concepts to create a complex JSON Payload which we see in real-time.
GIT Repo - bitbucket.org/...
If you do not like my content please share your feedback so that I can improve myself.
If you like my content then please like, subscribe, and share.
Thanks
Amod
Thank you so very much Sir, I have been struggling from hours to pass a very complex JSON into MAPS, this helped me way better than any tutorial.... Appreciate your video !!! :) cheers
Best explanation when to use List and map, never saw anyone explained this detailed. Good Job Amod !
Glad you liked it
This is a great example..Currently I wanted to implement something similar to this and this would help me a lot..Thanks for the explanation!!
You are amazing... I was looking for this exactly.
Very helpful 👌 thank you so much sir.
Awesome work Amod bhai !!!
Really well explained concept of PayLoad creation using Java List and Map concept .. Since long i have gone through multiple videos of various channels and this Video made me Clear my conepts. I will follow more Vides using POJO Classes to chosse better approach during API Automation framework implementation using Rest Assured _ Java. Thank You ... !!!
Thanks 🙏
Very well explained👌
Very well explained about HashMap & LinkedHashMap | LinkedList & ArrayList differences. Thanks Amod
Amod, your concept teaching is really good but please make little faster as well to reduce the video length as short and sweet with required info.
Really appreciate the way your teaching every thing in detail. This concept we must understand before diving deep into creating framework. One question, you mentioned that the approach shown in the video will not be fruitful if we have large json object, could you please tell us what should we do in that case? What would be your solution?
Hello Amod, I'm going through this series and it's really awesome. Would like to request 2 things.
1.Can u please create a video on how to pass data from one API to another API on runtime dynamically.
2. And if possible sometimes voice quality is bit low in some of the videos if anything can be done on that would be a great thing
Thanks for the series😀
Sure.
well-described using map , could you please make video
for complex json payload using POJO
👌👌👌
I am a consuming an API using webclient in springboot. In the response there are few fields, one of which is "Errors". Now the problem that I am facing is that the value of the key "Errors" is inconsistent. Sometimes it comes as a String, sometimes it comes as Json object and sometimes it comes as List. I have created a field Errors in my Pojo which is of String type. Hence the value of Errors are not getting mapped all the time. Kindly help me. Is there any annotation which will solve this issue?
very well explained !! thanks, 1 query what to do when there will be so many JSON objects in real time then how to handle at that time? also whats ur mail id sir..
Therr are multiple ways of creating payloads and that depends which is best suitable in your case. For more control on payload, POJOs are suitable. For small payloads, map and list can be used. Sometimes payload can be read from a json file and manipulate as required. My mail
Id is amod.mahajan@hotmail.com
@@RetargetCommon thanku sir for reply
I am losing track while creating. I get confused where to add.
Practice will make you better. Don’t expect that you will be perfect in first attempt itself. Break in small parts and create as I have shown in the video.