renamed json module to model_json to avoid conflict with Python json library