question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested object are not rendered

See original GitHub issue

I do have object in c# following structure

 {
Property1
Property2
Contact{
    FirstName
    LastName
}
}

Then


  var vars = new ScriptObject();
            vars.Import(model, renamer: member => member.Name);
            var context = new TemplateContext();
            context.PushGlobal(vars);
            var result = template.Render(context);

So in template I want to print {{Contact.FirstName}} but it return empty string.

Is it supported?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xoofxcommented, Jan 17, 2019

Sure, this is very welcome!

0reactions
bradwscommented, Mar 16, 2019

It would be great to give a clear example in the run-time docs showing iterating a .NET string array (or a List of custom objects) and showing their output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot render nested object array using map - React
Cannot render nested object array using map - React · 1 · Hello Keith, that returns "undefined" but not sure why as it...
Read more >
Nested object data not rendering properly : r/reactjs
I compile the data and set the data into state. In my component, the data that is in the initial document shows fine,...
Read more >
Nested object are not rendered · Issue #115 · scriban ...
I do have object in c# following structure { Property1 Property2 Contact{ FirstName LastName } } Then var vars = new ScriptObject(); vars....
Read more >
Schema not getting rendered for nested objects
Hi I am seeking help to get name, lastname and age renderered in ui which is under nested objects. i am able to...
Read more >
[Solved]-Deep nested array of objects not rendering-Reactjs
The problem is that you are not returning anything from inside the innermost map function. return Object.keys(secondData).map((thirdData, i) => { return ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found