Show validation errors in Knockout JS form

I created a form (master/detail) with help of KnockoutJS. I don’t trust client, so I would like to use server side validation. When I submit a form and there is an error I get JSON with field name and error message. As I’m new to KnockoutJS I don’t know how to show error message of that input field. I would like to mark this field red color. Any suggestions if somebody managed to do this?

Found solution: https://stackoverflow.com/questions/43022886/knockout-show-server-validations-errors?rq=1