var ospf_neighbors = JSON.parse(value),
	result = {
		response: {
			'@status': 'success',
			data: []
		}
	};

if (ospf_neighbors.response['@status'] !== 'success') {
	ospf_neighbors.response.data = [];
	return JSON.stringify(ospf_neighbors);
}

if (ospf_neighbors.response.result.entry) {
	result.response.data = Array.isArray(ospf_neighbors.response.result.entry) ? ospf_neighbors.response.result.entry : [ospf_neighbors.response.result.entry];

	return JSON.stringify(result);
}

return JSON.stringify(result);