Wiki Discussion: SWI-Prolog in the browser using WASM

How feasible it would be extracting JSON-related code from there? HTML is big one and probably troublesome since so many guides and documentation refers to HTML support as being from http package.

General JSON representation was mentioned here:

Was it about this representation? https://www.swi-prolog.org/pldoc/doc_for?object=term_to_json/3