getify / JSON.minify

Simple minifier for JSON to remove comments and whitespace
http://web.archive.org/web/20100629021329/http://blog.getify.com/2010/06/json-comments/
410 stars 102 forks source link

'module' object is not callable #53

Closed archiif closed 4 years ago

archiif commented 4 years ago
>>> json_minify('{"test": "test"}')
Traceback (most recent call last):
  File "<pyshell#186>", line 1, in <module>
    json_minify('{"test": "test"}')
TypeError: 'module' object is not callable

Why is my Python code not working?

archiif commented 4 years ago

Ah never mind, to import it properly I had to use:

from json_minify import json_minify

instead of

import json_minify