read configuration from a string or a file in json format.