#461: svm_json.py, correct logic