I make a call to REST services and it returns a json string, looks like:
{
"head":[
"\"head1\"",
"head2",
"head3"
],
"tail":[
[
"tail1",
"tail2",'
"tail3"
],
[
"tail1a",
"tail2a",
"tail3a"
],
....and so on till n.
]
}
I would like to parse the json in such a way that, I get a (key,value) pair.
I.e head1=tail1, head2=tail2, head1=tail1a, head2=tail2a
and so on.
Is there a way to achieve this? Also suggest which json should I use, I have found 3 types of .jar files over internet and totally confused.