0

I'm trying to get all record fields and create oData query and got some responseTxt

"d" : {
"results": [
"statuscode": {
"__metadata": {
"type": "Microsoft.Crm.Sdk.Data.Services.OptionSetValue"
}, "Value": 1
}

etc

I checked that all fields with their values present in responseText and then I got array

var GetVal = JSON.parse(this.responseText).d;

Now I need to take all fields names in

GetVal.results[0]

Because I can get value of some field, for example

GetVal.results[0]["new_name"]

How can I do it?

ernikoss
  • 63
  • 1
  • 2
  • 9
  • Are you looking for something like [iterating through json object javascript](http://stackoverflow.com/questions/19323699/iterating-through-json-object-javascript) – djluis Feb 14 '14 at 23:53
  • Shanks, Thank you for answer! I already find solution – ernikoss Feb 15 '14 at 16:22

0 Answers0