fix to_json import