0

I have used the following Java code from Yahoo to get search results response (Go to: Java Example) in the following link: http://developer.yahoo.com/boss/search/boss_api_guide/codeexamples.html

I registered and got my OAuth consumer key and secret and inserted them in the code. I got the following output

enter image description here

I am totally new to dealing with Json response and parsing them. Can anybody help in how can I parse this response in order to get the search results ???

Dylan Corriveau
  • 2,561
  • 4
  • 29
  • 36
Jury A
  • 19,192
  • 24
  • 69
  • 93

1 Answers1

1

You can try using a library like Gson to convert the Json response into Java objects and use it with ease.

Check this for a simple tutorial:

http://www.javabeat.net/2012/04/parsing-json-using-java-and-gson-library/

Serdar Dogruyol
  • 5,147
  • 3
  • 24
  • 32