Discussions

Ask a Question
Back to All

Secret switch to make 1.0.1 REST API return normal JSON

I remember one of the ASI developers telling us about a header you could include when making a request of the .../IQA endpoint which would cause it to return the output in "normal" JSON format. Much like the difference in output between the .../IQA and .../Query endpoints in 20.3, discussed at https://developer.imis.com/docs/migrating-from-iqa-to-query-service-endpoint.

I've scoured my notes and this site, and can't find it anymore. Does anyone recall?

Desired output snippet:

{
    "$type": "System.Dynamic.ExpandoObject, System.Core",
    "Name": "Aaron Ketterling",
    "PrimaryOrganizationName": "Bureau of Meteorology - South Australia",
    "Title": ""
}

Default output snippet:

{
    "$type": "Asi.Soa.Core.DataContracts.GenericEntityData, Asi.Contracts",
    "EntityTypeName": "59",
    "Properties": {
        "$type": "Asi.Soa.Core.DataContracts.GenericPropertyDataCollection, Asi.Contracts",
        "$values": [
            {
                "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                "Name": "ResultRow",
                "Value": "6"
            },
            {
                "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                "Name": "Name",
                "Value": "Aaron Ketterling"
            },
            {
                "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                "Name": "PrimaryOrganizationName",
                "Value": "Bureau of Meteorology - South Australia"
            },
            {
                "$type": "Asi.Soa.Core.DataContracts.GenericPropertyData, Asi.Contracts",
                "Name": "Title",
                "Value": ""
            }
        ]
    }
}