#461: svm_json.py, create and return json object