close nav

close nav

Thread: Parse json to Java then set into entity class

Forum : Problem Solving   19 Days ago
User Image
HamidSiddi

Newbie

Joined: 22 Apr, 2021

Points: 100

Threads: 1

Posts: 0

Parse json to Java then set into entity class

| Quote Date : 22 Apr, 2021    Views:93    

Parse json response into Java

Then get data from json and set it 
Into hibernate entity class and last
Insert entity object into table

Comments

User Image
Sriman

Contributor

Joined : 15 Jul, 2016

Points : 1820

Threads: 1911

Posts: 292

Re: Parse json to Java then set into entity class

Reply Date : 7 May, 2021

Hi HamidSiddi,

You can use javax.json api for reading the data from Json and pass it to Hibernate entity object for storing the data
Javax.Json supports 3 ways of reading the data
- parsing
- streaming
- binding.
if you want to read the complete json and populate into entity object to store you can directly use jsonb api of java. let me know if you are looking for an example I can help you on it.?

Load More

No More Comments