In a .rb file I am using result = JSON.parse(res.body)['data']['results'] and get
[
  {"suggestion":"Lineman","id":"49.10526"},
  {"suggestion":"Linguist","id":"27.10195"},
  {"suggestion":"Librarian","id":"25.47"},
  {"suggestion":"Lifeguard","id":"33.39"},
  {"suggestion":"Line Cook","id":"35.30125"},
  {"suggestion":"Life Coach","id":"21.209"},
  {"suggestion":"Life Guard","id":"33.1001"}
]
now I want an array like
[
  "Lineman",
  "Linguist",
  "Librarian",
  "Lifeguard",
  "Line Cook",
  "Life Coach",
  "Life Guard"
]
What should I apply to JSON.parse(res.body)['data']['results']?
resultis merely an array. That it came from a JSON string is irrelevant to your question.Stringkeys and what you have shown will result inSymbolkeys. Yes, this distinction is important