I dont have knowledge on jasper my friend.. but it should be possible to create a pipeline where you configure your jasper report to fetch data from rest endpoint and then put it in fields.. see if you have some sort of ETL in jasper
can use this library with core java to store Hashmap data into MySQL databases and also retrieve it from the database can we do that...if yes how and if no why sir
what so ever datatype you pass, data should also be of the same type. if this is the case then it can deserialize else it would give type mismatch error
There can be multiple ways.. one is using the google gson library. You can use below reference: import com.google.gson.Gson; ResponseEntity.ok(gson.toJson(""));
Thanks for making me understand ObjectMapper. But why would you use the ObjectMapper class to write to a text file. You could have used any other writer class. Having said that thanks though.
Thats just a example.. intention was to showcase object mapper use and not how to write data in file. Once you have your serialised version of json data you can do anything it .. here in this tutorial i wrote that in file. Thats it.. Thanks
good and useful content.
excellent explanation on this topic!
thx for clear explaination
great Explanation with simple example - Thanks buddy
Thanks
How do we handle nested json ?
what if one of the field in employee class is Array ?
How will you extract it from json using JsonNode ???
Excellent explanation,
Please give an example for a nested JSON object.
Thank you
Thanks for your recommendation, I will surely post a tutorial on nested json.. do subscribe and stay tuned for more
Thanks very much today my dought got clear
if i hava an arraylist in Employee class ?
Thanks for this wonderful presentation :-) It helped me a lot !
Glad it was helpful!
Nice tutorial
thanks a lot for this very well explained tutorial.
Very well explained
Very well explained... Thanks:)
Awesome 👍
Hey, I need to get json data from postman and need to insert that json to jasper report "Fields". How do I do that?
are you calling any rest endpoint through postman?
Yes. Do I need to assign that postman json to variables?@@SwatechTalks
not really.. see if you can call the endpoint through jasper and use the response
Do you have a video about this? Can I use any data adapter in jasper studio to create the jrxml file? I am stuck here since 3 days.@@SwatechTalks
I dont have knowledge on jasper my friend.. but it should be possible to create a pipeline where you configure your jasper report to fetch data from rest endpoint and then put it in fields.. see if you have some sort of ETL in jasper
can use this library with core java to store Hashmap data into MySQL databases and also retrieve it from the database can we do that...if yes how and if no why sir
very well explained. thanks.
Thanks😊😊
if have a json string in that case how do i convert it to list of class object help please
i want same in Servlet -- how to handle JSON request and response in servlet with jackson +jersey in JBoss
How is your video compared to Jsoup?
Thank you.!
Very well explained.
Thanks and stay tuned
What happens if we give int instead of string in json string and then try to deserialize it?
what so ever datatype you pass, data should also be of the same type. if this is the case then it can deserialize else it would give type mismatch error
Really liked this video
Thanks
what about multiple nested strings?
11:14 reverse JSON
nice Explainned
If we are getting ResponseEntity response ….
Now how we can convert this response as json object
There can be multiple ways.. one is using the google gson library. You can use below reference:
import com.google.gson.Gson;
ResponseEntity.ok(gson.toJson(""));
it was good but what about the objects and arrays in the JSON
Good video!
Thanks for making me understand ObjectMapper. But why would you use the ObjectMapper class to write to a text file. You could have used any other writer class. Having said that thanks though.
Thats just a example.. intention was to showcase object mapper use and not how to write data in file. Once you have your serialised version of json data you can do anything it .. here in this tutorial i wrote that in file. Thats it.. Thanks
@@SwatechTalks Got it. Thanks again.
thank you very much sir.
Thanks
hello sir,
please show, how to produce json with nested object.
{
"empName" : "john",
"address" : {
"City" : "LA",
" Country" :"US"
}
}
QQQQQ
Sblm