to Jws Compact
Converts flattened JSON serialization to compact serialization.
This requires the absence of an unprotected header, because compact JWS can only carry protected parameters. The protected fragment must therefore represent a valid JwsHeader by itself.