JSON Machine-learning API