#Parsing JSON that has quotes around it.

4 messages · Page 1 of 1 (latest)

woven mason

I've got a JSON I fetched from a game API, and it's nested currently in "getCurrentMatch.matches[0]" and I get this result:

sudden nexusBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
woven mason

My question here is, how do I parse the "data.IS_PARTY" type of things.

Since if I wanted the ID for example, I'd do getCurrentMatch.matches[0].id but I can't really do getCurrentMatch.matches[0].'data.IS_PARTY' since it's in quotes.