Sign in
Log inSign up

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]
  ]
}