0

I have json file with data

 ( "date" : "2019-1-2"
   "Group" : "xyz"
   "Bookname" : "harrypotter"
   "Url" : "https:dhdudgussisk"
),
( " date" : " 2015-2-3"
  " Group" : "qbc"
  "Bookname" : "happy"
  "Url" : "https://hdhdjdksksksks"
)

The code has to be in java written in a way such that when I change the input bookname value the output should display its respective url....some one please help me solve this

Mikalai Lushchytski
  • 1,563
  • 1
  • 9
  • 18
yamini
  • 1
  • 1

2 Answers2

0

Lets hope we understood you right, you want to read out of an json with key-value method.

I think what could help you is knowing how to properly parse an json to java.

How to parse JSON in Java

size
  • 11
  • 2
0

There is a lot of libraries providing this. You should explore the internet before you asked a question which was answered many times and it is not hard to find a relevant tutorial.

For example, the Jackson library can be used there.

Intro to the Jackson.

pz96
  • 21
  • 4