Messages : 22 Error Message : 22.8 Error: Array Type Mismatch
 
22.8 Error: Array Type Mismatch
The JSON representation of an Open Message Model Array contains different data types within the "Data" JSON Array.
 
"Data" Array Contains Both Ints and a String
 
SENT:
{
    "ID": 2,
    "Key": {
        "Name": "TRI.N"
    }
    "Map": {
        "Entries": [
            {
                "Action": "Add",
                "Fields": {
                    "ORDER_PRC": 326.3,
                    "ORDER_SIDE": 1,
                    "ORDER_SIZE": 100,
                    "QUOTIM_MS": 78398067
                },
                "Key": {
                    "Type": "Int",
                    "Length": 3,
                    "Data": [
                        1,
                        2,
                        "3"
                    ]
                }
            }
        ]
        "KeyType": "Array"
    }
}
 
RECEIVED:
[
    {
        "ID": 2,
        "Type": "Error",
        "Text": "JSON Mixed Types in OMM Array: Received 'PRIMITIVE' and 'STRING' for key
                'Data'",
        "Debug": {
            "File": "Converter/jsonToRwfSimple.C",
            "Line": 5809,
            "Offset": 387,
            "Message": "{\n   \"ID\": 2,\n   \"Key\": {\n   \"Name\": \"TRI.N\"\n   },\n
                    \"Map\": {\n   \"Entries\": [\n   {\n   \"Action\": \"Add\",\n
                    \"Fields\": {\n   \"ORDER_PRC\": 326.3,\n   \"ORDER_SIDE\": 1,\n
                    \"ORDER_SIZE\": 100,\n   \"QUOTIM_MS\": 78398067\n   },\n   \"Key\":
                    {\n   \"Type\": \"Int\",\n   \"Length\": 3,\n   \"Data\": [\n   1,
                    \n   2,\n   \"3\"\n   ]\n   }\n   }\n   ],\n   \"KeyType\":
                    \"Array\"\n   }\n}"
        }
    }
]