var bgp = JSON.parse(value);

var result = bgp.bgp_peers.map(function (peer) {
  return {
	'{#BGP_ROUTER_NAME}': peer['router_name'],
	'{#BGP_PEER_REMOTE_ADDR}': peer['peer_address'],
	'{#BGP_PEER_REMOTE_AS}': peer['peer_as']
  };
});

return JSON.stringify(result);