Implemented endpoint ajax action for validating the json