adding JsonModel method