In the code-base I am working on, the default python json module is being overridden by another json module which performs a different function.
How do I import the standard json module ?
import json does not work as it imports the other package.
What is the fully qualified name of the standard python json module ?
Use absolute imports instead:
You can still import the ‘masking’, local
jsonmodule using the relative import syntax:Support for absolute imports as an option has been introduced in python 2.5, and is the default in python 3.
It’d be better to rename the ‘masking’ module, however.