lundi 9 juillet 2018

How to extract keys from an array

I have an array of tags

[
{"1boy": 0.9390615820884703},
{"solo": 0.9158311486244202},
{"male": 0.6592671275138855},
{"black hair": 0.4281844198703766},

]

How do I extract the string from this array of hashes so that they display as a list:

  • 1boy
  • solo
  • male
  • black hair

Aucun commentaire:

Enregistrer un commentaire