allows example body to be a hash instead of string