Al Sweigart on Nostr: Oh man. Python's json module could really be improved by having friendly error ...
Oh man. Python's json module could really be improved by having friendly error messages. It's encountering bad syntax at line 5 column 89 (char 211)
I *really* don't know what that is because I copy/pasted the json data directly into a multiline string in my code.
Add this to the my todo list one day.
Published at
2024-09-10 17:50:20Event JSON
{
"id": "aeef21b34c0f78501742b9dfb9580cd8345cdb1d19680c79414591287ebcf8e7",
"pubkey": "e6209258574b94ca26c7fd92f570c052fc5ee0ac1a302d98fcac5d8407d49eaa",
"created_at": 1725990620,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@AlSweigart/113114521280379645",
"web"
],
[
"proxy",
"https://mastodon.social/users/AlSweigart/statuses/113114521280379645",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/AlSweigart/statuses/113114521280379645",
"pink.momostr"
],
[
"-"
]
],
"content": "Oh man. Python's json module could really be improved by having friendly error messages. It's encountering bad syntax at line 5 column 89 (char 211)\n\nI *really* don't know what that is because I copy/pasted the json data directly into a multiline string in my code.\n\nAdd this to the my todo list one day.",
"sig": "60be054f059c0ba0c983cc5414d3e2be2c3b258e72f5cbcd1d887d5cc2eedf0ee7c38fe8b1ae0963caf44d032b5566ad6c1d6c9acadfdece3c7ea9ccf6017377"
}