Logical check of json config

Has been added this check.
Additionally, config.schema is a json schema also useful for doc porpouses.