json.decoder.JSONDecodeError: Expecting ‘:’ delimiter: line 1237 column 14 (char 64557)
Put comma where a colon should have been
As the error message suggests, the parser is expecting a colon : where it found some other character.
I got this error when I was trying to parse JSON with Python and I put a comma where I should have put a colon.
For example, this:
{
"items":
[
{
"abc", "xyz",
"def", "lmnop"
}
]
}
Should have been this:
{
"items":
[
{
"abc": "xyz",
"def": "lmnop"
}
]
}
Attributes and their values are separated by colons. Dictionaries have curly braces around them. Lists have square brackets around them.
In another case, I forgot the attribute name like this, where abc from the above example is missing:
{
"items":
[
{
"xyz",
"def": "lmnop"
}
]
}
Teri Radichel
If you liked this story please clap and follow:
Medium: Teri Radichel or Email List: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests services via LinkedIn: Teri Radichel or IANS Research
© 2nd Sight Lab 2022
____________________________________________
Author:
Cybersecurity for Executives in the Age of Cloud on Amazon
Need Cloud Security Training? 2nd Sight Lab Cloud Security Training
Is your cloud secure? Hire 2nd Sight Lab for a penetration test or security assessment.
Have a Cybersecurity or Cloud Security Question? Ask Teri Radichel by scheduling a call with IANS Research.
Cybersecurity & Cloud Security Resources by Teri Radichel: Cybersecurity and Cloud security classes, articles, white papers, presentations, and podcasts