title: Cannot use (type []map[string]interface {}) as type []string in field value
body: <p>How to store Array of JSONs (in string format) in []string (individual JSON string in each index of string array) ?</p>
  
  <pre><code>package main
  import (
   "encoding/json"
   "fmt"
  )
  type StructData struct {
    Data      []string `json:"data"`
  }
  
  func main() {
   empArray := "[{\"abc\":\"abc\"},{\"def\":\"def\"}]"
  
   var results []map[string]interface{}
  
   json.Unmarshal([]byte(empArray), &amp;results)
  
   pr := &amp;StructData{results}
   prAsBytes, err := json.Marshal(pr)
   if err != nil {
      fmt.Println("error :", err)
   }
  }
  </code></pre>
  
  <p>Here I am getting the error </p>
  
  <pre><code>cannot use results (type []map[string]interface {}) as type []string in field value
  </code></pre>
  
  <p>Is there any other method to store the each json string data in each index of string array?</p>