content delivery api - content.getValue for string...
# help-with-umbraco
m
Hi, Hopefully a simple question from a newb. I'm following the documentation for adding a custom filter https://docs.umbraco.com/umbraco-cms/reference/content-delivery-api/extension-api-for-querying#custom-filter and in the AuthorFilter.cs example it uses the IContent GetValue method with a type. I have a couple of items that are a checkbox list and a tag, which are a string arrays but are returning as string e.g. "[\\"first\\",\\"second\\"]" What is the correct typing or conversion to use on this to turn it into (I assume) something like IEnumerable? I tried GetValue and GetValue<IEnumerable> but both returned null. Thanks, J
12 Views