Rewritten service config json read. First implementation (not working yet).