Thread:Talk:How to write a JavaScript to display data in a Semantic MediaWiki/SMWAPI use of container/reply

It is best to explained by an example such as ext.srf.formats.datatables.js / DataTables.php

Data from an in-page ask query is per-disposed via the result printer therefore we have to catch/parse the json-data to avoid wasting resources.

Fetching the data via does the parsing on its own and you get a formatted smw.datamodel object as result (e.g.   etc.) via ext.smw.api.js / ext.smw.data.js.