Add support for storing role and meta data as json