17.1 Spring Boot| ObjectMapper | Converting JSON into Object using ObjectMapper

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

You beauty. Two days i got stucked in this concept. And I found your video.Thank you for saving my job! It means a lot🥰🥰🥰🥰

wicky
Автор

Just one question that if I am passing the hobbies json name as "HOBBIES" and rest the same I am getting the exception of unrecognized filed, not marked as ignorable and while checking it I found that internally hibernate is changing the name of the HOBBIES to hobbies even if I am trying to create the name as private HOBBIES HOBBIES; and this is the reason why I m getting that error and if I am keeping passing my json object as hobbies:{} then it working fine but HOBBIES :{} is not working

abhaykumar
Автор

how to use JPA repository to fetch such object ... I am getting exception as -> cannot deserialize instance of java.lang.string out of start_object token

abhishekfly
Автор

What of the case when the data is coming from the client ? How do you use @ResponseBody for nested Json data .

kirwakelvinkering
Автор

Json string to java object conversion. But my java object has map in it along with other variables.


Map<String, Employee>


In that case how we can achieve it.

viratsuresh
Автор

I`m having an error in spring security
java.lang.RuntimeException: Unrecognized token 'email': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: line: 1, column: 7]
at

It works with postman, but not with browser

do u have any idea y

peterfernandes
Автор

Great video, but please answer my question. I use mongodb with sprinboot. I never use obejectmapper their. I create my class as per JSON fields. Somehow, JSON is directly mapped to object. I don't know how this happen or this happen with mongodb only.
Please share you thought and share some link to read more about it.

Cheers !!

vaibhavjain
Автор

What happens when input json contains date value in some format or it contains some flag as yes or no instead of true false... How would it can be handled?

nik
Автор

sir
why we use objectMapping
what is the point of it
I am new in java and it is my first job and i am really confused

gabrielfono
Автор

i want to store json object to string format in database through spring boot api how?

RohitSingh-kocz
Автор

Thanks for a clear video!! You can try to shorten it, otherwise its great

devchawda
Автор

use gson for serializing the deserializing the objects..

lovepreetsingh