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 support

See original GitHub issue

This feature enables native access to subproperties of a field (see example below).

...
<th data-column-id="person.id">Person ID</th>
<th data-column-id="person.age">Age</th>
...

Here person is actually one field. But instead of being a value like number or string it’s an object that has properties which are holding the content we’re interested in (e.g. age, id and so on). See the example object below.

{
    ...
    rows: [
        ...
        {
            ...
            person: { id: "p-01", age: 55 }
        }
    ]
}

Many thanks to Mohammed Riyad El Khoudary for conceptional work.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
javarebelcommented, Jun 7, 2016

Try data-formatter. formatters: { "age": function(column, row) { return row.person.age; } }

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON nested objects - IBM
JSON nested objects. Objects can be nested inside other objects. Each nested object must have a unique access path. The same field name...
Read more >
Nested field type | Elasticsearch Guide [8.5] | Elastic
The nested type is a specialised version of the object data type that allows arrays of objects to be indexed in a way...
Read more >
Nested - OpenSearch documentation
A nested field type is a special type of object field type. Any object field can take an array of objects. Each of...
Read more >
Nested object support for bean mapping? - Google Groups
A simple approach would be to hold a Map of author ID to author as you collect, and then use "computeIfAbsent" to fill...
Read more >
Nested Object Support in a Structure-of-Arrays Dynamic ...
One of the limitations in DynaSOAr is its poor support for nested objects. When a class has a field of another class, the...
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