use json for training data