your code example seems incomplete above.
If you are getting an object that suggests that you didn’t json decode