Nested object support
See original GitHub issueThis 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:
- Created 9 years ago
- Comments:8
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try data-formatter.
formatters: { "age": function(column, row) { return row.person.age; } }
http://gijgo.com/grid/demos/nested-jquery-grids