Implementation of DI based on JSON configuration