That is what I was thinking. There is already a specification for JSON schema, see: JSON Schema
The down side of a JSON schema is that
- The noted schema is not official AFAIK.
- Many people don’t use a schema when given the chance.
- AFAIK there is no SWI-Prolog JSON schema validator. They do exist for other programming languages (ref)
- Each message type would need a new JSON schema.
I do like MQI I just don’t like changes to SWI-Prolog that are specialized.
Related topic: json_dict/2 - Helpful for learning how to use JSON with SWI-Prolog dict
Expand the notes section for some really useful information.