Added ability to configure model with JSON string