Skip to content

Capture ExpandoObject as dictionaries/structures #47

@omidkrad

Description

@omidkrad

When logging an object that has a property of type Dictionary using @ then it's shown as expected in Seq like:

{
  DictionaryObj: {
    'ItemA': 100,
    'ItemB': 200,
  }
}

But when logging the dictionary object directly, it shows as a list of KeyValuePairs like:

[ItemA, 100], [ItemB, 200]

It is not consistent in how a Dictionary object is displayed and I highly prefer it to show as an object than a list, as in:

{
  'ItemA': 100,
  'ItemB': 200,
}

Update: dynamic objects which are dictionaries underneath already log as expected as objects. ExpandoObjects also need to be fixed to log as objects.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions