Adding json marshaling feature to macaroon.