Need to import json here too. Resolves #12.