case when value is a dict in the get_context