sb_model prototype
Added json handling for model.