var routers = JSON.parse(value);

var result = routers.bgp.map(function (router) {
  return {
	'{#BGP_ROUTER_NAME}': router['router_name'],
	'{#BGP_THREAD_MODE}': router['bgp_thread_mode'],
	'{#BGP_PEER_COUNT}': router['peer_count']
  };
});

return JSON.stringify(result);