imuepis

Query/Identify task response in ArcGIS Server 9.4 vs 10 Pre

Discussion created by imuepis on May 5, 2010
Hi,
After installing ArcGIS Server 10 Prerelease we noticed different json response when using query/identify tasks. Here`s an example of identify task response when using ArcGIS Server 9.4 beta 2:
{
    "results": [
        {
            "layerId": 0,
            "layerName": "Ur??dijos",
            "value": "Kretingos mišk? ur??dija",
            "displayFieldName": "StateForestTitle",
            "attributes": {
                "OBJECTID": "139",
                "StateForestCode": "60",
                "SHAPE": "Polygon",
                "StateForestId": "45",
                "StateForestTitle": "Kretingos mišk? ur??dija" 
            },
            "geometryType": "esriGeometryPolygon",
            "geometry": {
                "spatialReference": {
                    "wkid": 3857 
                },
                "rings": [
                    ...
                ] 
            }
        }
    ]
}

And this what we get when using ArcGIS Server 10 Prerelease:
{
    "results": [
        {
            "layerId": 0,
            "layerName": "Ur??dijos",
            "value": "Kretingos mišk? ur??dija",
            "displayFieldName": "StateForestTitle",
            "attributes": {
                "[database].[schema].[table].OBJECTID": "139",
                "[database].[schema].[table].mu_kod": "60",
                "[database].[schema].[table].SHAPE": "Polygon",
                "[database].[schema].[table].mu_id": "45",
                "[database].[schema].[table].mu_vard": "Kretingos mišk? ur??dija"
            },
            "geometryType": "esriGeometryPolygon",
            "geometry": {
                "spatialReference": {
                    "wkid": 3857
                },
                "rings": [
                    ...
                ]
            }
        }
    ]
}

It seems that ArcGIS Server 10 Prerelease bypasses/drops alias fields. What`s more wierd is the fact, that when runing queries using service directory query tool response includes alias fields O_o. Is this a bug or "feature"?

Outcomes