close

[Solved] JSONDecodeError: Expecting ‘,’ delimiter: line 1 column 43 (char 42)

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error JSONDecodeError: Expecting ‘,’ delimiter: line 1 column 43 (char 42) in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How JSONDecodeError: Expecting ‘,’ delimiter: line 1 column 43 (char 42) Error Occurs?

Today I get the following error JSONDecodeError: Expecting ‘,’ delimiter: line 1 column 43 (char 42) in python.

How To Solve JSONDecodeError: Expecting ‘,’ delimiter: line 1 column 43 (char 42) Error ?

  1. How To Solve JSONDecodeError: Expecting ',' delimiter: line 1 column 43 (char 42) Error ?

    To Solve JSONDecodeError: Expecting ',' delimiter: line 1 column 43 (char 42) Error Fix your JSON input; either replace those colons with commas, remove the "0":"1":, and "2": 'indices', or replace the [...] array brackets with {...} JSON object braces.

  2. JSONDecodeError: Expecting ',' delimiter: line 1 column 43 (char 42)

    To Solve JSONDecodeError: Expecting ',' delimiter: line 1 column 43 (char 42) Error Fix your JSON input; either replace those colons with commas, remove the "0":"1":, and "2": 'indices', or replace the [...] array brackets with {...} JSON object braces.

Solution 1

Your JSON is invalid, it has : tokens in an array:

"result": ["0": "24", "1": "43", "2": "56"]
#             ^          ^          ^

and

"result": ["0": "44", "1": "29", "2": "34"]
#             ^          ^          ^

Fix your JSON input; either replace those colons with commas, remove the "0":"1":, and "2": ‘indices’, or replace the [...] array brackets with {...} JSON object braces.

Solution 2

This is not a JSON, list or dict – not a python valid type:

["0":"24","1":"43","2":"56"]

in order to fix this and continue.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read