Learn Courses My Dashboard

Module 5 Couldn't Parse jsonData

Shows error_instance = (Builtin.RawPointer) 0x0 when parsing the jsonData in Module 5. Been debugging for days…

Replace

print("Couldn't parse local data")

with

print(error)

and see what you get. That should be much more informative.

If it still isn’t doing what you want it to do, please post some more code showing what you are doing to trigger an error.

can you show your code to parse the json? also make sure that the JSON matches EXACTLY with your class so you won’t encounter a mismatch

Oh, and when you post code, please post it as text, not a screenshot. You can do this by placing three backticks ``` on the line before your code and three backticks ``` on the line after your code so that it will be formatted properly. You can also highlight an entire code block and click the </> button on the toolbar to wrap the block for you.

This makes it far easier to read and also makes it easier for other posters to copy/paste the code in order to test solutions and such.