Posts by Carlos Alberto Schneider • 136 points
2 posts
-
1
votes3
answers1314
viewsA: access a json object as if it were an array
You can use for.. in (as you are doing) , just check hasOwnProperty to delete properties added to the prototype. Also check that the received JSON on the server is valid. var object = {a:"1", b:"2",…
-
1
votes1
answer62
viewsA: Is it necessary to enable Cross-Origin Requests for ASP.NET Web API?
Hello, If the API is in another domain, other than the one of the application , you will need to enable cross origin(CORS) in the API. For example: If the application is in:domain with., And the api…