Convert Java to JSON & JSON to Java Object | Parse JSON in Java | ObjectMapper in Jackson API

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ •

  • @dineshyeshamoni5426
    @dineshyeshamoni5426 3 місяці тому +1

    good and useful content.

  • @raghipandit6624
    @raghipandit6624 4 місяці тому +1

    excellent explanation on this topic!

  • @HuyNguyen-u1v
    @HuyNguyen-u1v 10 днів тому +1

    thx for clear explaination

  • @ganvads
    @ganvads 3 роки тому +2

    great Explanation with simple example - Thanks buddy

  • @shubhamsharma-mt4hs
    @shubhamsharma-mt4hs 3 роки тому +4

    How do we handle nested json ?

  • @rahulsolanki__
    @rahulsolanki__ 2 роки тому +1

    what if one of the field in employee class is Array ?
    How will you extract it from json using JsonNode ???

  • @MunnaKumar-uw3bf
    @MunnaKumar-uw3bf 4 місяці тому

    Excellent explanation,
    Please give an example for a nested JSON object.
    Thank you

    • @SwatechTalks
      @SwatechTalks  4 місяці тому

      Thanks for your recommendation, I will surely post a tutorial on nested json.. do subscribe and stay tuned for more

  • @manashranjan1267
    @manashranjan1267 Рік тому +1

    Thanks very much today my dought got clear

  • @xojiakbarabiyorov
    @xojiakbarabiyorov 2 роки тому

    if i hava an arraylist in Employee class ?

  • @johnwesley4162
    @johnwesley4162 Рік тому

    Thanks for this wonderful presentation :-) It helped me a lot !

  • @Indian-km4gk
    @Indian-km4gk 2 роки тому +1

    Nice tutorial

  • @atulchavan4330
    @atulchavan4330 3 роки тому +2

    thanks a lot for this very well explained tutorial.

  • @lordgreat6051
    @lordgreat6051 2 роки тому +1

    Very well explained

  • @anonymouslabz5124
    @anonymouslabz5124 3 роки тому +2

    Very well explained... Thanks:)

  • @vrindagoyal
    @vrindagoyal 3 роки тому +1

    Awesome 👍

  • @TechTalksbyRanga
    @TechTalksbyRanga Рік тому

    Hey, I need to get json data from postman and need to insert that json to jasper report "Fields". How do I do that?

    • @SwatechTalks
      @SwatechTalks  Рік тому

      are you calling any rest endpoint through postman?

    • @TechTalksbyRanga
      @TechTalksbyRanga Рік тому

      Yes. Do I need to assign that postman json to variables?@@SwatechTalks

    • @SwatechTalks
      @SwatechTalks  Рік тому

      not really.. see if you can call the endpoint through jasper and use the response

    • @TechTalksbyRanga
      @TechTalksbyRanga Рік тому

      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

    • @SwatechTalks
      @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

  • @vishwjeetujgare7437
    @vishwjeetujgare7437 2 роки тому

    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

  • @namannagar422
    @namannagar422 2 роки тому +1

    very well explained. thanks.

  • @theLastOneTaken
    @theLastOneTaken Рік тому +1

    Thanks😊😊

  • @geetusoni7045
    @geetusoni7045 3 роки тому

    if have a json string in that case how do i convert it to list of class object help please

  • @jayanthrangappaigtb9587
    @jayanthrangappaigtb9587 2 роки тому

    i want same in Servlet -- how to handle JSON request and response in servlet with jackson +jersey in JBoss

  • @renejacques8288
    @renejacques8288 2 роки тому

    How is your video compared to Jsoup?

  • @Sushil2874
    @Sushil2874 3 роки тому +1

    Thank you.!
    Very well explained.

  • @abhishekmishra2195
    @abhishekmishra2195 Рік тому

    What happens if we give int instead of string in json string and then try to deserialize it?

    • @SwatechTalks
      @SwatechTalks  Рік тому

      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

  • @hitenarya4987
    @hitenarya4987 3 роки тому +1

    Really liked this video

  • @zr60
    @zr60 2 роки тому

    what about multiple nested strings?

  • @jonsantos6056
    @jonsantos6056 2 роки тому +1

    11:14 reverse JSON

  • @Vithal_Nivargi
    @Vithal_Nivargi 2 роки тому +1

    nice Explainned

  • @rajeevmishra3056
    @rajeevmishra3056 3 роки тому

    If we are getting ResponseEntity response ….
    Now how we can convert this response as json object

    • @SwatechTalks
      @SwatechTalks  3 роки тому +1

      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(""));

  • @MemescapeHQ
    @MemescapeHQ 2 роки тому

    it was good but what about the objects and arrays in the JSON

  • @WickedChild95
    @WickedChild95 2 роки тому

    Good video!

  • @MrRahulKumarKandula
    @MrRahulKumarKandula 2 роки тому

    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.

    • @SwatechTalks
      @SwatechTalks  2 роки тому +1

      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

    • @MrRahulKumarKandula
      @MrRahulKumarKandula 2 роки тому +1

      @@SwatechTalks Got it. Thanks again.

  • @mdnazeer6025
    @mdnazeer6025 4 роки тому

    thank you very much sir.

  • @amirmalla1533
    @amirmalla1533 Рік тому +1

    Thanks

  • @mdnazeer6025
    @mdnazeer6025 4 роки тому +2

    hello sir,
    please show, how to produce json with nested object.
    {
    "empName" : "john",
    "address" : {
    "City" : "LA",
    " Country" :"US"
    }
    }

  • @hamzaalicetin1717
    @hamzaalicetin1717 2 роки тому +1

    Sblm