properly encode the links and configs to json, not yaml