- event_to_json(+Event, -JSONTerm, +Lang) is semidet[multifile, library(pengines)]
- Hook that translates a Pengine event structure into a term suitable
for reply_json_dict/1, according to the language specification Lang.
This can be used to massage general Prolog terms, notably associated
with
success(ID, Bindings, Projection, Time, More) and output(ID,
Term) into a format suitable for processing at the client side.