#702: svm_training.py, properly validate, and store JSON object for XML case