fixed mistake in assuming any json request should have a payload.