Split JSON roles to explicit_roles and calculated_roles