Helpers to register and to validate requests with json content