How about (creating) a Prolog interpreter which consumes and outputs JSON?
Then use #SheBang to make any such prolog-file interpreted by that interpreter to return JSON to the caller. Then it could be integrated to ANY program written in any language which uses the Unix shell-calling conventionss.
this is certainly a very useful idea. the Rego datalog language leans on this pretty heavily, although its emphasis is on access policy more than general transforms.
ddlog is another datalog variant that supports this, but I believe you need to specify the schema as a rust type
https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&d...