My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Get JSON Array name

DK's photo
DK
·Mar 30, 2018

Hey! I have a JSON and want to get nameOne and nameTwo (and more if there's more) to use it as a string for my categories. I haven’t found a way to do this on my own. I only get the content of the array. But never the name. Could you help? I need it for a ReactJS project.

{
  "nameOne": [
    [some strings],
    [some strings]
  ],
  "nameTwo": [
    [some strings],
    [some strings]
  ]
}