Added json handling for model. Ongoing... making sb_model look like json model. Next step is to switch to json model.