Multi values to attribute

Hi,

Can we have a multi-valued attribute? Because when i tried to issue a claim with multi-valued attribute it threw invalid structure error.

Can anyone please help me with this?

Thanks in advance.

Current Sovrin credentials support only a flat structure with simple attributes. However, there is an easy workaround: embed JSON as a string. So if you want an attribute called, for example, mailingAddress, that consists of subfields named “street”, “city”, and “postalCode”, you could give a value like this:

{
    // ... other fields ...
    "mailingAddress": "{\"street\": \"123 Main Street\", \"city\": \"Somewhere City\", \"postalCode\": 83473}"
    // ... other fields ...
}

Thanks danielh. Will try this workaround.