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?

tothebeatCEOtothebeatCEO Posts: 1Questions: 1Answers: 0
edited November 2019 in Free community support

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

Answers

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921

    Looks like you should be able to use ajax.dataSrc to point to the mainEntity data structure. Then use nested objects with columns.data as shown in this example to access the acceptedAnswer objects.

    Kevin

This discussion has been closed.