Skip to content

Nested ExpandoObject not being parsed by template #130

@czuroski

Description

@czuroski

I have a rather complex json object that is a hierarchy of nested components. I also have a series of nested hb templates for rendering the data. If I am using a JObject to render my templates against, everything works correctly, but the rendering time is rather slow - ~3-4 seconds.

I saw information in issue 56 that seems to indicate using and ExpandoObject would give considerably better performance over a JObject. Converting the json to an ExpandoObject results in a series of nested ExpandoObjects that I expect to use as the data for the templates. However, the nested objects don't seem to be working as references and my templates aren't rendering as I expect them to.
If I attempt to render the context in one of my templates, the result is "System.Dynamic.ExpandoObject" instead of the data in the json. This seems to indicate that the nested expandoObjects are causing issue.
Is there a different way to access this, and will using an ExpandoObject over a JObject give me much of a performance boost?

I am going to try to put together a test to demonstrate this issue as I have time.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions