The syntax of your log output is that of a function call. The function in question is named jQuery19008239585978290092_1392763042662()
, and it's taking a single argument: an anonymous object that looks like the payload of your response.
I suppose it's possible that you're getting odd behavior from Firebug's logging; jQuery runs JSON responses through $.parseJSON()
before returning it. Try simply logging the ID in the success handler: console.log('id=', json.features[0].attributes.ID);
It's also possible you're using something other than $.ajax
or $.get
method with a dataType
of json
, or $.getJSON
. If so, you may have to more explicitly specify the data types and/or accepts
values in your AJAX call.