Can datatables hande schema.org json files withour having to chnage the structure?
Can datatables hande schema.org json files withour having to chnage the structure?

I was hoping we could use the schema json files from search and render the information in tables, perhaps even adding editor. Reprocessing the file makes no sense. Is there a quicker way?
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "Will the DMARC Compliance record be enough to stop this type of attack in the future?",
"acceptedAnswer": {
"@type": "Answer",
"text": "No a compliant DMARC record is not sufficient for a domain to be trusted not to protect a domain from being spoofed. Trusted Sender project takes into account the human factor as well as more technical email disciplines than just DMARC. We recommend reading our Ultimate DMARC Guide for further information. "
}
}]
}
Edited: to reformat JSON structure
This discussion has been closed.
Answers
Looks like you should be able to use
ajax.dataSrc
to point to themainEntity
data structure. Then use nested objects withcolumns.data
as shown in this example to access theacceptedAnswer
objects.Kevin