claims.parse implementation -- see examples/claims-parsing.js