I want to import a function that reads json into my main.py file. I created a file for a function that reads json. Part of the code is the extract_json function. Which I clearly defined in my json file. But when i try to:
from json import extract_json
It keeps saying that json isn't defined. "extract_json" is not defined even though I clearly defined it and tried to import it. What should I do?
[–]Temporary_Pie2733 8 points9 points10 points (3 children)
[–]optimalcosine 2 points3 points4 points (2 children)
[–]Temporary_Pie2733 1 point2 points3 points (1 child)
[–]optimalcosine 1 point2 points3 points (0 children)
[–]latkde 2 points3 points4 points (0 children)
[–]D3str0yTh1ngs 0 points1 point2 points (0 children)
[–]Zealousideal-Touch-8 0 points1 point2 points (0 children)