Java Check Json contains sub json

Java - I have 2 json data which i am going to get from post and get calls.

How can i verify if Json 1 contains data of Json 2 ?

Json string 1

[

{

"name":"John",

"city":"Berlin",

"cars":[

"audi",

"bmw"

],

"job":"Teacher"

},

{

"name":"Mark",

"city":"Oslo",

"cars":[

"VW",

"Toyata"

],

"job":"Doctor"

}

]

Json string 2

{

"name":"John",

"city":"Berlin",

"cars":[

"audi",

"bmw"

],

"job":"Teacher"

}...

Read More »

By: StackOverFlow - 6 days ago

Related Posts