Ask coding questions

← Back to all posts
How to get a JSON key's value in an bracket key?
RixTheTyrunt

Let's say, the JSON code is:

So, I want to get that name1 from multi-name, cause I know,

doesn't work, at all.

Voters
RixTheTyrunt
Comments
hotnewtop
SixBeeps

Use the array notation for getting the key instead of the object notation. You have a hyphen in the key, and I think that's throwing it off.