How to use the nested JSON object through setting?
See original GitHub issueHi I have a nested JSON
[country:{
"name":"India",
"states":{
[{
.................
}]
}
}
...
]
I have tried but doesn’t work 😦
settings:{
columns:{
country:{
title:"Countries"
},
country.states:{
title:"States"
}
}
}
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:38
Top Results From Across the Web
JSON.simple - How to correctly access nested JSON objects
Yes, you are right, simply extract the JSONObject within the loop and then get the required fields. public class main { public static...
Read more >How can we parse a nested JSON object in Java?
We can parse a nested JSON object using the getString(index) method of JSONArray. This is a convenience method for the getJSONString(index).
Read more >Storing and retrieving Nested JSON document
Example of Nested JSON object · Step 1. Run RedisJSON Docker container · Step 2. Verify if RedisJSON module is loaded · Step...
Read more >how to parse nested json in java - You.com | The AI Search ...
How to parse nested JSON in Java? A JSON Object is an unordered set of key/value pairs. · How to fetch the data...
Read more >JSON nested objects - IBM
Objects can be nested inside other objects. Each nested object must have a unique access path. The same field name can occur in...
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 FreeTop 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
Top GitHub Comments
Hi guys, I found a sollution: Use valuePrepareFunction for each element you need to prepare the value:
more on https://akveo.github.io/ng2-smart-table/#/documentation
I have fixed the issue by using (cell, row) here is code snippet: initiator: { title: “Started By”, type:‘string’, valuePrepareFunction: (cell,row) => { return row.startedBy.lastName; } }, email: { title: “Email”, type:‘string’, valuePrepareFunction: (cell,row) => { return row.startedBy.email; } }, Hope it works for you too. 😃