added support for validating json body