Excluir metadados e tipo Odata do JSON
O script abaixo retorna um JSON do meu ODataController
< script >
$(document).ready(function() {
$.ajax({
url: "http://localhost:37994/odata/EPStructures3/",
type: "Get",
contentType: 'application/json; charset=utf-8',
success: function(data)
{
//do something.....
},
error: function(msg)
{
alert(msg);
}
});
});
< /script>
O JSON:
{ "odata.metadata":"http://localhost:37994/odata/$metadata#EPStructures3","value":[{"eps_level":0,"id":2},{"eps_level":1,"id":3}]}
Desejo excluir os metadados e o tipo para que o JSON seja retornado assim:
[{"eps_level":0,"id":2},{"eps_level":1,"id":3}]
Como posso conseguir isso?