Python Forum
Error when decoding JSON ( Expecting ',' delimiter:)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error when decoding JSON ( Expecting ',' delimiter:)
#4
Python is definitely able to parse it:
>>> json.loads('''{
... "cookieId": "1548768911871854",
... "firstVisit": 0,
... "customerExtId": null,
... "channelName": "www",
... "referrer": null,
... "actionMcType": null,
... "offerType": null,
... "actionOnProduct": null,
... "pageTitle": "page title",
... "pageDesc": "page description",
... "pageKeywords": "page kw"
... }''')
{'cookieId': '1548768911871854', 'firstVisit': 0, 'customerExtId': None, 'channelName': 'www', 'referrer': None, 'action
McType': None, 'offerType': None, 'actionOnProduct': None, 'pageTitle': 'page title', 'pageDesc': 'page description', 'p
ageKeywords': 'page kw'}
It looks like you're misdiagnosing the problem.
If you can share code which recreates the error, we might be able to help.
Reply


Messages In This Thread
RE: Error when decoding JSON ( Expecting ',' delimiter:) - by stranac - Feb-15-2019, 02:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  expecting value: line 1 column 1 (char 0) in print (r.json)) loutsi 3 7,764 Jun-05-2020, 08:38 PM
Last Post: nuffink
  500 error cannot deserialize json object SaiBhargav 0 2,854 Sep-18-2018, 09:53 PM
Last Post: SaiBhargav
  Decoding html to text string PeterPython 1 2,700 Aug-12-2018, 07:23 PM
Last Post: Larz60+
  Json decoding error saisankalpj 3 3,870 Jul-23-2018, 07:06 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020