sending json to server instead of string of array to allow for cascade, fixed model.py