title: How to read JSON file with Arrays and Objects in Java
body: <p>I'm trying to read a file which is fetched from Opentdb and access data from only specific keys. </p>
  
  <p>I've tried all of the given methods  which includes GSON and Json Simple but ended up having errors.</p>
  
  <p>Here's my JSON:</p>
  
  <pre><code>    {
    "response_code": 0,
    "results": [
      {
        "category": "Sports",
        "type": "multiple",
        "difficulty": "easy",
        "question": "Which of the following sports is not part of the triathlon?",
        "correct_answer": "Horse-Riding",
        "incorrect_answers": [
          "Cycling",
          "Swimming",
          "Running"
        ]
      },
      {
        "category": "Sports",
        "type": "multiple",
        "difficulty": "easy",
        "question": "Which English football club has the nickname \u0026#039;The Foxes\u0026#039;?",
        "correct_answer": "Leicester City",
        "incorrect_answers": [
          "Northampton Town",
          "Bradford City",
          "West Bromwich Albion"
        ]
      }, 
  </code></pre>
  
  <p>I want to access only <b> category,  difficulty, question , correct_answer and incorrect_answers </b> .</p>