As i was looking deeper at dicts i found that great library by Raivo Laanemets that deserves being better known … As i am not sure it has been mentionned yet on discourse i add the link hereunder:
Dict validation/conversion for Swi-Prolog. The library started as a predicate to convert certain dict (from HTTP JSON requests) entries into suitable forms (especially the string/atom conversion). A large part of this library was inspired by JSON-Schema
Moreover it looks like a good idea to have converters from other formats too.
EDIT: A nice thing to point out with such libraries and part of the way Prolog programmers work is test cases : https://www.swi-prolog.org/pack/file_details/dict_schema/tests/tests.pl … a nice place for examples too.