title: Error: interface conversion interface {} is []interface {}, not map[string]interface {}
body: <p>I am building a project that takes a term from the user and then performs a google search and returns a list of titles in json format.</p>
  
  <p>I am using the serpwow API to perform the google search and am trying to parse the response.</p>
  
  <p>However I am getting the error that states:</p>
  
  <pre><code>panic: interface conversion: interface {} is []interface {}, not map[string]interface {}.
  </code></pre>
  
  <p>I have looked through various forms and have tried to learn how mapping works but I am not sure why in this case, my mapping is not working. The table for organic results looks like this:</p>
  
  <pre><code>"organic_results": [
      {
        "position": 1,
        "title": "The 10 Best Pizza Places in Dublin - TripAdvisor",
        "link": "https://www.tripadvisor.ie/Restaurants-g186605-c31-Dublin_County_Dublin.html",
        "domain": "www.tripadvisor.ie",
        "displayed_link": "https://www.tripadvisor.ie › ... › County Dublin › Dublin",
        "snippet": "Best Pizza in Dublin, County Dublin: Find TripAdvisor traveller reviews of Dublin Pizza places and search by price, location, and more.",
        "prerender": false,
        "snippet_matched": [
          "Pizza",
          "Pizza"
        ],
        "cached_page_link": "https://webcache.googleusercontent.com/search?q=cache:OS-Ar9hB_ngJ:https://www.tripadvisor.ie/Restaurants-g186605-c31-Dublin_County_Dublin.html+&amp;cd=4&amp;hl=en&amp;ct=clnk&amp;gl=ie",
        "related_page_link": "https://www.google.com/search?q=related:https://www.tripadvisor.ie/Restaurants-g186605-c31-Dublin_County_Dublin.html+pizza&amp;tbo=1&amp;sa=X&amp;ved=2ahUKEwicjYKvvNjmAhVoSBUIHa9MBhcQHzADegQIARAH",
        "block_position": 2
      },
  </code></pre>
  
  <p>and here is a snip of my code:</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "strings"
      serpwow "github.com/serpwow/google-search-results-golang"
  )
  
  func main() {
      // set API key
      apiKey := "Key_Hidden"
  
      //read term to search
      fmt.Print("What term would you like to search in google? ")
      var term string
      fmt.Scanln(&amp;term)
  
      // set up our search parameters
      parameters := map[string]interface{}{
          "q": term,
      }
  
      // retrieve the search results as JSON
      response, error := serpwow.GetJSON(parameters, apiKey)
  
      // print the response, or error, if one occurred
      if error != nil {
          fmt.Println(error)
      } else {
      //extract title from organic results
      //result := fmt.Sprintf("%v", response["organic_results"].(map[string]interface{})["title"])
      for _, item := range response["organic_results"].([]interface{}) {
          fmt.Sprintf("%v", item.(map[string]interface{})["title"])
      }
      //s := []string{result, "\n"}
      //fmt.Printf(strings.Join(s, " "))
  
  }
  </code></pre>
  
  <p>}
  Can someone please help me figure our where my logic is wrong?</p>