passing config from router to json output mod