Use json models in controller