How to fix ValueError: Expecting property name: line 4 column 1 (char 43)

Multi tool use
Multi tool use












0















when I tr to run python manage.py runserver code is giving error . And its traceback is strange ,



I tried




JSON ValueError: Expecting property name: line 1 column 2 (char 1)




and all similar questions but didn't get what exactly I am facing.



Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/home/tousif/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/home/tousif/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 308, in execute
settings.INSTALLED_APPS
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/tousif/Desktop/ITP/ITP/itpcrm/itpcrm/settings.py", line 55, in <module>
cfg = json.loads(open('/home/tousif/Desktop/ITP/ITP/itpcrm/config.json', 'r').read())
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 4 column 1 (char 43)


my config.json file which containt credentials etc (I have changed credentials to post here ) .And got this file from live server where its working fine but on local its giving this error.



{
"dev": {
"db": {

"ENGINE": "django.db.backends.mysql",
"NAME": "itpcrm",
"USER": "root",
"PASSWORD": "password",
"HOST": "localhost",
"PORT": "3306"
},
"jwt_key": "GRESDFwef3452fwefer",
"voice_api_url": "http://192.112.255.32:9040",
"voice_api_key": "3123",
"auth_api_key": "379h4f73f",
"provisioner_api_key": "abc",
"quote_approval_url": "http://192.112.255.145:9998/quotes/customer-approval?token=",
"docusign_base_url": "https://demo.docusign.net/restapi",
"docusign_integrator_key": "8a256bde-405b",
"docusign_oauth_base_url": "account-d.docusign.com",
"docusign_redirect_uri": "http://192.112.255.145:9998/api/callbacks/docusign",
"docusign_private_key_filename": "/home/itp/docusign-examples/keys/docusign_private_key.txt",
"docusign_user_id": "7f2444f-ae99-54922fec68f6",
"docusign_user_name": "dor.com"
},
"prod": {
"db": {

"ENGINE": "django.db.backends.mysql",
"NAME": "itp",
"USER": "it",
"PASSWORD": "password",
"HOST": "192.168.3.111",
"PORT": "3306"
},
"jwt_key": "rRregrgERg54g564heRGRfdsger",
"voice_api_url": "https://api.crm.itpscorp.com/itpvoice",
"voice_api_key": "abc1",
"auth_api_key": "379h4f73f3279fy927yf928oowqofabdbf",
"provisioner_api_key": "abc123123",
"quote_approval_url": "http://192.112.255.145:9998/quotes/customer-approval?token=",
"docusign_base_url": "https://demo.docusign.net/restapi",
"docusign_integrator_key": "8a256bde-405b-4032-bf24-be0245631f03",
"docusign_oauth_base_url": "account-d.docusign.com",
"docusign_redirect_uri": "http://192.112.255.145:9998/api/callbacks/docusign",
"docusign_private_key_filename": "/home/itp/docusign-examples/keys/docusign_private_key.txt",
"docusign_user_id": "7f26f6bb-8a39-444f-ae99-54922fec68f6",
"docusign_user_name": "docusign@itpfiber.com"
},
"mode": "dev"
}









share|improve this question




















  • 1





    Most likely your json file is corrupt, but we need to see its contents.

    – snakecharmerb
    Dec 30 '18 at 9:16











  • In the trace output I see /home/tousif/Desktop/ITP/ITP/itpcrm/config.json mentioned. That file probably has badly formatted json.

    – Red Cricket
    Dec 30 '18 at 9:17











  • Let me paste it here .

    – gamer
    Dec 30 '18 at 9:21











  • @RedCricket file updated here .

    – gamer
    Dec 30 '18 at 9:29











  • @snakecharmerb file updated here

    – gamer
    Dec 30 '18 at 9:29
















0















when I tr to run python manage.py runserver code is giving error . And its traceback is strange ,



I tried




JSON ValueError: Expecting property name: line 1 column 2 (char 1)




and all similar questions but didn't get what exactly I am facing.



Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/home/tousif/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/home/tousif/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 308, in execute
settings.INSTALLED_APPS
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/tousif/Desktop/ITP/ITP/itpcrm/itpcrm/settings.py", line 55, in <module>
cfg = json.loads(open('/home/tousif/Desktop/ITP/ITP/itpcrm/config.json', 'r').read())
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 4 column 1 (char 43)


my config.json file which containt credentials etc (I have changed credentials to post here ) .And got this file from live server where its working fine but on local its giving this error.



{
"dev": {
"db": {

"ENGINE": "django.db.backends.mysql",
"NAME": "itpcrm",
"USER": "root",
"PASSWORD": "password",
"HOST": "localhost",
"PORT": "3306"
},
"jwt_key": "GRESDFwef3452fwefer",
"voice_api_url": "http://192.112.255.32:9040",
"voice_api_key": "3123",
"auth_api_key": "379h4f73f",
"provisioner_api_key": "abc",
"quote_approval_url": "http://192.112.255.145:9998/quotes/customer-approval?token=",
"docusign_base_url": "https://demo.docusign.net/restapi",
"docusign_integrator_key": "8a256bde-405b",
"docusign_oauth_base_url": "account-d.docusign.com",
"docusign_redirect_uri": "http://192.112.255.145:9998/api/callbacks/docusign",
"docusign_private_key_filename": "/home/itp/docusign-examples/keys/docusign_private_key.txt",
"docusign_user_id": "7f2444f-ae99-54922fec68f6",
"docusign_user_name": "dor.com"
},
"prod": {
"db": {

"ENGINE": "django.db.backends.mysql",
"NAME": "itp",
"USER": "it",
"PASSWORD": "password",
"HOST": "192.168.3.111",
"PORT": "3306"
},
"jwt_key": "rRregrgERg54g564heRGRfdsger",
"voice_api_url": "https://api.crm.itpscorp.com/itpvoice",
"voice_api_key": "abc1",
"auth_api_key": "379h4f73f3279fy927yf928oowqofabdbf",
"provisioner_api_key": "abc123123",
"quote_approval_url": "http://192.112.255.145:9998/quotes/customer-approval?token=",
"docusign_base_url": "https://demo.docusign.net/restapi",
"docusign_integrator_key": "8a256bde-405b-4032-bf24-be0245631f03",
"docusign_oauth_base_url": "account-d.docusign.com",
"docusign_redirect_uri": "http://192.112.255.145:9998/api/callbacks/docusign",
"docusign_private_key_filename": "/home/itp/docusign-examples/keys/docusign_private_key.txt",
"docusign_user_id": "7f26f6bb-8a39-444f-ae99-54922fec68f6",
"docusign_user_name": "docusign@itpfiber.com"
},
"mode": "dev"
}









share|improve this question




















  • 1





    Most likely your json file is corrupt, but we need to see its contents.

    – snakecharmerb
    Dec 30 '18 at 9:16











  • In the trace output I see /home/tousif/Desktop/ITP/ITP/itpcrm/config.json mentioned. That file probably has badly formatted json.

    – Red Cricket
    Dec 30 '18 at 9:17











  • Let me paste it here .

    – gamer
    Dec 30 '18 at 9:21











  • @RedCricket file updated here .

    – gamer
    Dec 30 '18 at 9:29











  • @snakecharmerb file updated here

    – gamer
    Dec 30 '18 at 9:29














0












0








0


1






when I tr to run python manage.py runserver code is giving error . And its traceback is strange ,



I tried




JSON ValueError: Expecting property name: line 1 column 2 (char 1)




and all similar questions but didn't get what exactly I am facing.



Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/home/tousif/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/home/tousif/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 308, in execute
settings.INSTALLED_APPS
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/tousif/Desktop/ITP/ITP/itpcrm/itpcrm/settings.py", line 55, in <module>
cfg = json.loads(open('/home/tousif/Desktop/ITP/ITP/itpcrm/config.json', 'r').read())
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 4 column 1 (char 43)


my config.json file which containt credentials etc (I have changed credentials to post here ) .And got this file from live server where its working fine but on local its giving this error.



{
"dev": {
"db": {

"ENGINE": "django.db.backends.mysql",
"NAME": "itpcrm",
"USER": "root",
"PASSWORD": "password",
"HOST": "localhost",
"PORT": "3306"
},
"jwt_key": "GRESDFwef3452fwefer",
"voice_api_url": "http://192.112.255.32:9040",
"voice_api_key": "3123",
"auth_api_key": "379h4f73f",
"provisioner_api_key": "abc",
"quote_approval_url": "http://192.112.255.145:9998/quotes/customer-approval?token=",
"docusign_base_url": "https://demo.docusign.net/restapi",
"docusign_integrator_key": "8a256bde-405b",
"docusign_oauth_base_url": "account-d.docusign.com",
"docusign_redirect_uri": "http://192.112.255.145:9998/api/callbacks/docusign",
"docusign_private_key_filename": "/home/itp/docusign-examples/keys/docusign_private_key.txt",
"docusign_user_id": "7f2444f-ae99-54922fec68f6",
"docusign_user_name": "dor.com"
},
"prod": {
"db": {

"ENGINE": "django.db.backends.mysql",
"NAME": "itp",
"USER": "it",
"PASSWORD": "password",
"HOST": "192.168.3.111",
"PORT": "3306"
},
"jwt_key": "rRregrgERg54g564heRGRfdsger",
"voice_api_url": "https://api.crm.itpscorp.com/itpvoice",
"voice_api_key": "abc1",
"auth_api_key": "379h4f73f3279fy927yf928oowqofabdbf",
"provisioner_api_key": "abc123123",
"quote_approval_url": "http://192.112.255.145:9998/quotes/customer-approval?token=",
"docusign_base_url": "https://demo.docusign.net/restapi",
"docusign_integrator_key": "8a256bde-405b-4032-bf24-be0245631f03",
"docusign_oauth_base_url": "account-d.docusign.com",
"docusign_redirect_uri": "http://192.112.255.145:9998/api/callbacks/docusign",
"docusign_private_key_filename": "/home/itp/docusign-examples/keys/docusign_private_key.txt",
"docusign_user_id": "7f26f6bb-8a39-444f-ae99-54922fec68f6",
"docusign_user_name": "docusign@itpfiber.com"
},
"mode": "dev"
}









share|improve this question
















when I tr to run python manage.py runserver code is giving error . And its traceback is strange ,



I tried




JSON ValueError: Expecting property name: line 1 column 2 (char 1)




and all similar questions but didn't get what exactly I am facing.



Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/home/tousif/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
utility.execute()
File "/home/tousif/.local/lib/python2.7/site-packages/django/core/management/__init__.py", line 308, in execute
settings.INSTALLED_APPS
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/tousif/.local/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/tousif/Desktop/ITP/ITP/itpcrm/itpcrm/settings.py", line 55, in <module>
cfg = json.loads(open('/home/tousif/Desktop/ITP/ITP/itpcrm/config.json', 'r').read())
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 4 column 1 (char 43)


my config.json file which containt credentials etc (I have changed credentials to post here ) .And got this file from live server where its working fine but on local its giving this error.



{
"dev": {
"db": {

"ENGINE": "django.db.backends.mysql",
"NAME": "itpcrm",
"USER": "root",
"PASSWORD": "password",
"HOST": "localhost",
"PORT": "3306"
},
"jwt_key": "GRESDFwef3452fwefer",
"voice_api_url": "http://192.112.255.32:9040",
"voice_api_key": "3123",
"auth_api_key": "379h4f73f",
"provisioner_api_key": "abc",
"quote_approval_url": "http://192.112.255.145:9998/quotes/customer-approval?token=",
"docusign_base_url": "https://demo.docusign.net/restapi",
"docusign_integrator_key": "8a256bde-405b",
"docusign_oauth_base_url": "account-d.docusign.com",
"docusign_redirect_uri": "http://192.112.255.145:9998/api/callbacks/docusign",
"docusign_private_key_filename": "/home/itp/docusign-examples/keys/docusign_private_key.txt",
"docusign_user_id": "7f2444f-ae99-54922fec68f6",
"docusign_user_name": "dor.com"
},
"prod": {
"db": {

"ENGINE": "django.db.backends.mysql",
"NAME": "itp",
"USER": "it",
"PASSWORD": "password",
"HOST": "192.168.3.111",
"PORT": "3306"
},
"jwt_key": "rRregrgERg54g564heRGRfdsger",
"voice_api_url": "https://api.crm.itpscorp.com/itpvoice",
"voice_api_key": "abc1",
"auth_api_key": "379h4f73f3279fy927yf928oowqofabdbf",
"provisioner_api_key": "abc123123",
"quote_approval_url": "http://192.112.255.145:9998/quotes/customer-approval?token=",
"docusign_base_url": "https://demo.docusign.net/restapi",
"docusign_integrator_key": "8a256bde-405b-4032-bf24-be0245631f03",
"docusign_oauth_base_url": "account-d.docusign.com",
"docusign_redirect_uri": "http://192.112.255.145:9998/api/callbacks/docusign",
"docusign_private_key_filename": "/home/itp/docusign-examples/keys/docusign_private_key.txt",
"docusign_user_id": "7f26f6bb-8a39-444f-ae99-54922fec68f6",
"docusign_user_name": "docusign@itpfiber.com"
},
"mode": "dev"
}






python json django python-2.7






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 30 '18 at 9:28







gamer

















asked Dec 30 '18 at 9:11









gamergamer

466




466








  • 1





    Most likely your json file is corrupt, but we need to see its contents.

    – snakecharmerb
    Dec 30 '18 at 9:16











  • In the trace output I see /home/tousif/Desktop/ITP/ITP/itpcrm/config.json mentioned. That file probably has badly formatted json.

    – Red Cricket
    Dec 30 '18 at 9:17











  • Let me paste it here .

    – gamer
    Dec 30 '18 at 9:21











  • @RedCricket file updated here .

    – gamer
    Dec 30 '18 at 9:29











  • @snakecharmerb file updated here

    – gamer
    Dec 30 '18 at 9:29














  • 1





    Most likely your json file is corrupt, but we need to see its contents.

    – snakecharmerb
    Dec 30 '18 at 9:16











  • In the trace output I see /home/tousif/Desktop/ITP/ITP/itpcrm/config.json mentioned. That file probably has badly formatted json.

    – Red Cricket
    Dec 30 '18 at 9:17











  • Let me paste it here .

    – gamer
    Dec 30 '18 at 9:21











  • @RedCricket file updated here .

    – gamer
    Dec 30 '18 at 9:29











  • @snakecharmerb file updated here

    – gamer
    Dec 30 '18 at 9:29








1




1





Most likely your json file is corrupt, but we need to see its contents.

– snakecharmerb
Dec 30 '18 at 9:16





Most likely your json file is corrupt, but we need to see its contents.

– snakecharmerb
Dec 30 '18 at 9:16













In the trace output I see /home/tousif/Desktop/ITP/ITP/itpcrm/config.json mentioned. That file probably has badly formatted json.

– Red Cricket
Dec 30 '18 at 9:17





In the trace output I see /home/tousif/Desktop/ITP/ITP/itpcrm/config.json mentioned. That file probably has badly formatted json.

– Red Cricket
Dec 30 '18 at 9:17













Let me paste it here .

– gamer
Dec 30 '18 at 9:21





Let me paste it here .

– gamer
Dec 30 '18 at 9:21













@RedCricket file updated here .

– gamer
Dec 30 '18 at 9:29





@RedCricket file updated here .

– gamer
Dec 30 '18 at 9:29













@snakecharmerb file updated here

– gamer
Dec 30 '18 at 9:29





@snakecharmerb file updated here

– gamer
Dec 30 '18 at 9:29












1 Answer
1






active

oldest

votes


















2














The empty lines after "db" starts with the unicode codepoint 0x200B ('ZERO WIDTH SPACE'). That is what trips up the JSON decoder.



I copied the text into gvim and made a screenshot. See below.



space in JSON



Remove those characters (or the whole line) and it works...



(Looking at the JSON file with a hex editor would also show the problem clearly.)



If you look closely at the error message, you can that this correctly identifies the problem:




ValueError: Expecting property name: line 4 column 1 (char 43)




The moral of this story: look out for whitespace codepoints.






share|improve this answer


























  • thanks . solved . can you give my question upvote please ?

    – gamer
    Dec 30 '18 at 9:41











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53976415%2fhow-to-fix-valueerror-expecting-property-name-line-4-column-1-char-43%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














The empty lines after "db" starts with the unicode codepoint 0x200B ('ZERO WIDTH SPACE'). That is what trips up the JSON decoder.



I copied the text into gvim and made a screenshot. See below.



space in JSON



Remove those characters (or the whole line) and it works...



(Looking at the JSON file with a hex editor would also show the problem clearly.)



If you look closely at the error message, you can that this correctly identifies the problem:




ValueError: Expecting property name: line 4 column 1 (char 43)




The moral of this story: look out for whitespace codepoints.






share|improve this answer


























  • thanks . solved . can you give my question upvote please ?

    – gamer
    Dec 30 '18 at 9:41
















2














The empty lines after "db" starts with the unicode codepoint 0x200B ('ZERO WIDTH SPACE'). That is what trips up the JSON decoder.



I copied the text into gvim and made a screenshot. See below.



space in JSON



Remove those characters (or the whole line) and it works...



(Looking at the JSON file with a hex editor would also show the problem clearly.)



If you look closely at the error message, you can that this correctly identifies the problem:




ValueError: Expecting property name: line 4 column 1 (char 43)




The moral of this story: look out for whitespace codepoints.






share|improve this answer


























  • thanks . solved . can you give my question upvote please ?

    – gamer
    Dec 30 '18 at 9:41














2












2








2







The empty lines after "db" starts with the unicode codepoint 0x200B ('ZERO WIDTH SPACE'). That is what trips up the JSON decoder.



I copied the text into gvim and made a screenshot. See below.



space in JSON



Remove those characters (or the whole line) and it works...



(Looking at the JSON file with a hex editor would also show the problem clearly.)



If you look closely at the error message, you can that this correctly identifies the problem:




ValueError: Expecting property name: line 4 column 1 (char 43)




The moral of this story: look out for whitespace codepoints.






share|improve this answer















The empty lines after "db" starts with the unicode codepoint 0x200B ('ZERO WIDTH SPACE'). That is what trips up the JSON decoder.



I copied the text into gvim and made a screenshot. See below.



space in JSON



Remove those characters (or the whole line) and it works...



(Looking at the JSON file with a hex editor would also show the problem clearly.)



If you look closely at the error message, you can that this correctly identifies the problem:




ValueError: Expecting property name: line 4 column 1 (char 43)




The moral of this story: look out for whitespace codepoints.







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 30 '18 at 10:36

























answered Dec 30 '18 at 9:37









Roland SmithRoland Smith

26.4k33054




26.4k33054













  • thanks . solved . can you give my question upvote please ?

    – gamer
    Dec 30 '18 at 9:41



















  • thanks . solved . can you give my question upvote please ?

    – gamer
    Dec 30 '18 at 9:41

















thanks . solved . can you give my question upvote please ?

– gamer
Dec 30 '18 at 9:41





thanks . solved . can you give my question upvote please ?

– gamer
Dec 30 '18 at 9:41


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53976415%2fhow-to-fix-valueerror-expecting-property-name-line-4-column-1-char-43%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







CesSjokv3NhjFdkCpRV,xp
X0LidDwxnC6y LX a,2L br J7 1QgKiQ h1hM9eVeUWc965 dOLLGU8,AA

Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas